This is a simple REST API developed using node and express with typescript
-
you need to install PostgreSQL and then set the following environment variable
C:\Program Files\PostgreSQL\10\bin
,C:\Program Files\PostgreSQL\10\lib
-
rename
.env-sample
to.env
in the file the DB connection string need to be updated accoring to yourcredentials
. ex :postgres://<YourUserName>:<YourPassword>@localhost:5432/<YourDatabase>
-
you can find the DB and other details under
src/db
create database with the namecomplete-typescript-course
and then run/ import the.sql
files
clone the repo then goto that directory and run following commands
npm install
To transpile .ts files to .js run
npm run watch
To start the Application
nodemon or npm start
this will run on port 3000 you can change on config or
node server.js -p <PORT>
Angular University complete-typescript-course