it is API for E-commerce store
-
first your need to be sure that you install these on your machine
-
Node.js
-
postgres
-
Git
- application server is running on port
3000
- database server is running on port
5432
DATABASE_HOST
DATABASE_USER
DATABASE_NAME
DATABASE_PASSWORD
DATABASE_TEST
ENV
SALT_ROUND
PEPPER
TOKEN_SECRET
- git clone https://github.com/YousefAdel2020/Store-Front.git
- open the the folder
- open the terminal
- write
npm i
in terminal to install all dependancies - create .env file and put the enviroment variables in it
- open terminal
- write down in the terminal 'psql -U (username)' and then enter the password
- write 'CREATE DATABASE front_store;' to create the development database
- write 'CREATE DATABASE front_store_test;' to create the testing database
- to the application on port
3000
in development mode
- starts a TypeScript compiler, similar to nodemon but for TypeScript.
- runs the unit test using Jasmine and remove all tables after testing
- use to compile TypeScript to JavaScript and put it in
dist
folder