Repository for the course CSYE-6225
Name | NUID |
---|---|
Arjun Raja Yogidas | 002964082 |
Nest framework TypeScript starter repository.
For development, you will need Node.js and a node global package, npm, installed in your environement.
You will also need to have postgres running in your local machine
- use cli tools like brew to install postgres
- create a database
webapp_db
add your credentials in the.env
file - make sure that the postgres process is running in the background and specify the correct port name in your
.env
file. (default is 5432) - Create a datbase using
CREATE DATABASE webapp_db
- Create a
.env
file and add the contents from.env_local
file and change the env values to your local database variable
-
Just go on official Node.js website and download the installer. Also, be sure to have
git
available in your PATH,npm
might need it (You can find git here). -
You can install nodejs and npm easily with apt install, just run the following commands.
$ sudo apt install nodejs $ sudo apt install npm
-
You can find more information about the installation on the official Node.js website and the official NPM website.
If the installation was successful, you should be able to run the following command.
$ node --version
v16.14.3
$ npm --version
8.3.0
$ git clone [email protected]:Org-Arjun-Raja-002964082/webapp.git
$ cd webapp
$ npm install
$ npm install
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
# unit tests
$ npm run test
/healthz [GET] - get the health status of the webapp
v1/account [POST] - create a new user
v1/acount/:id [GET] - fetch authenticated User
v1/account/:id [PUT] - update authenticated user
v1/documents/:id[GET] - get document for user
v1/documents/
aws acm import-certificate --certificate
fileb://demo.arjunraja.me/certificate.pem --certificate-chain
fileb://demo.arjunraja.me/ca_bundle.pem --private-key
fileb://demo.arjunraja.me/private.pem