This Repositoriy Contain A Backend App Build With Express, To Get Started colne This Repositoriy and run npm install
at The Root of The Porject
- express
- typescript
- bcrypt
- rimraf
- jsonwebtoken
- bcrypt
- db-migrate
- dot-env
- supertest
- jasmine
run psql -U postgres
CREATE USER postgres WITH PASSWORD 'postgres';
CREATE DATABASE store;
CREATE DATABASE store_test;
\c store
\c store_test
- run
npm run migerate-up
for makeing Database Migeration on Database - run
npm run migerate-down
for reset Database Migeration on Database
POSTGRES_HOST=localhost
POSTGRES_DB=store
POSTGRES_PORT=5432
POSTGRES_USER=postgres
POSTGRES_PASSWORD=postgres
POSTGRES_DB_TEST=store_test
NODE_ENV=dev
JWT_SECRET=secrettoken
BCRYPT_PEPPER=somepepper
SALT_ROUND=10
PORT=3000
npm run build
to build the project in build directorynpm run test
to test the project with jasmine and Test_Database : store_testnpm run dev
to run project in development modenpm run start
to build the broject and start it with Production_Database : storenpm run test:windows
to test the project with jasmine and Test_Database : store_test on windowsnpm run format
to format project with prettiernpm run lint
to lint project with eslint