Git Product home page Git Product logo

vue3-golang-todo-webapp's Introduction

Vue3-golang-todo-webapp

stack

  • vue3
  • pinia
  • typescript
  • golang
  • gin
  • google oauth2
  • mongodb atlas

IDE setting

  • VScode
  • Volar
  • Go

How to start

What you need before running

Front-End

1. cd todo-client
2. create .env file
3. env file setup
  VIET_APP_BASE_URL={ this is server url }
  VITE_GOOGLE_OAUTH2_CLIENT_ID={ your google oauth2 client id }
  VITE_GOOGLE_OAUTH2_CLIENT_PW={ your google oauth2 client pw }
4. npm ci

Back-End

1. cd todo-server
2. create .env file
3. env file setup
  DB_USERNAME={ your mongodb user name }
  DB_PASSWORD={ your mongodb user password }
  DB_PORT={ your mongodb atlas port }
  DB_NAME={ your db name }
  // example 
  // uri := fmt.Sprintf("mongodb+srv://%s:%s@%s", config.DBUserName, config.DBPassword, config.DBPort) use username,password,url
  // database = client.Database(config.DBName) use db name

  PORT={this port front-end env base url port }
  ENV=production
  GOOGLE_CLIENT_ID={ your google client id // it is same to front-end .env google client id }
  GOOGLE_SECRET_KEY={ your google secret key // it is same to front-end .env google client pw }
  GOOGLE_OAUTH_REDIRECT_URL={ your google client setting redirect url }
  // bottom url is google page your setup google client id,key,redirect url
  // https://console.developers.google.com/home
  
4. make build // if your haven't "make" package, you need brew install make
5. ./cs // just start complie file

vue3-golang-todo-webapp's People

Contributors

dltmdrbtjd avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.