1.cdtodo-client2.create.envfile3.envfilesetupVIET_APP_BASE_URL={thisisserver url }VITE_GOOGLE_OAUTH2_CLIENT_ID={yourgoogleoauth2client id }VITE_GOOGLE_OAUTH2_CLIENT_PW={yourgoogleoauth2client pw }4.npmci
Back-End
1.cdtodo-server2.create.envfile3.envfilesetupDB_USERNAME={ your mongodbusername}DB_PASSWORD={yourmongodbuser password }DB_PORT={yourmongodbatlas port }DB_NAME={ your dbname}// 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 namePORT={thisportfront-endenvbaseurl port }ENV=productionGOOGLE_CLIENT_ID={yourgoogleclientid// it is same to front-end .env google client id }GOOGLE_SECRET_KEY={yourgooglesecretkey// it is same to front-end .env google client pw }GOOGLE_OAUTH_REDIRECT_URL={yourgoogleclientsettingredirect url }// bottom url is google page your setup google client id,key,redirect url// https://console.developers.google.com/home4.makebuild// if your haven't "make" package, you need brew install make5../cs// just start complie file