Quick demo on how to run a Node.js App on Azure
This file contains the info to tell us which file to start (in this case, bin/www
)
This file tells us which file contains the deployment commands
This file will run npm install for us when we deploy to the Azure Web App
- Fork this repo
- Create a Web App
- Add DB connection info as App Settings
- PGUSER
- PGPASSWORD
- PGDATABASE
- PGSERVER
- Set up GitHub deployment
- Click on Deployment Options
- Choose GitHub
- Select the forked repo
- Click on Deployment Options again and wait for it to complete
- Visit home page
- Clone this repo
- Set up env variables
- PGUSER
- PGPASSWORD
- PGDATABASE
- PGSERVER
- Run
npm install
- Run
npm start
If you want to modify the server code, you'll need to run npm run build
from the root directory
If you want to modify the client library, you'll need to navigate to the client directory and run npm run build