- MongoDB
- NodeJS
###BACKEND
- cd
- sudo npm install
- nodemon
backend endpoint is protected with JWT token, when using POSTMAN to test API, you'll need to include a token in the header
####To get a token
- register your account: http://backend.trinhtrunganh.com/register
- POST to
http://backend.trinhtrunganh.com/api/login
your username & password - Add header to POSTMAN
Authorization: Bearer <your token>
###FRONTEND
-
cd
-
sudo npm install
-
sudo npm install -g gulp bower
-
gulp serve (too start local server)
-
gulp build (to build deployment package)
-
gulp serve:dist (to start local server but using the build package)
-
when developing with local backend, change
API
inmain/src/app/index.config.js
point to the local address
###SSH keys
- give your ssh key to @anh
cat ~/<pub_file> | ssh root@host "sshcommand acl-add dokku dokku-noi"
###Geo Data format
#
City
Province
Province
Province
Province
#
City
Province
Province
Province
Province