- Clone from this repo https://github.com/ramdanplusplus/express-tutorial
git clone https://github.com/ramdanplusplus/express-tutorial
- Change directory to current tutorial
cd express-tutorial-1
- Run sql query in folder db-migration
cd express-tutorial-1
- Setting up .env file
PORT=4000 APP_ENV=development # Postgres Database PSQL_HOST= PSQL_PORT=5432 PSQL_DATABASE=online_course_db PSQL_USER=postgres PSQL_PASSWORD= PSQL_SSL=
- Install dependencies
npm install
- Run application
npm run dev
- To test application work, please open http://localhost:4000/status on your browser.# backend-13