Node and npm should be already installed on server
- Clone this repo and cd into it
- Generate ssl certificate in repo root -> openssl req -nodes -new -x509 -keyout server.key -out server.cert
- Follow Nginx/nginx.txt to install and setup nginx
- Copy generated ssl certs to -> /etc/nignx/ssl/ (or reconfigure path in nginx configuration file)
- Copy Nginx/nginx-configuration file. Restart nginx -> /etc/nginx/sites-available/ , rename as 'default' ;
- Once nginx is running, go to machines IP and verify -> https://server-IP should show unsafe warning but can proceed to nginx welcome page (as server used self signed ssl)
- Install micro-services from scripts/ dir -> ./installServer.sh
- Start node-express microservices -> ./startServer.sh
- Following endpoints should now be accessible -> https://server-IP |-> /write/user |-> /sync/user |-> /register/user