- run
npm i - run
npm i db-migrate -g - run
npm run createdatabaseto create the database - run
npm run migrate:upto create the database tables - add .env file to the directory
- run
npm run start:dev
PORT=3000
POSTGRES_DB=storefront
POSTGRES_DB_TEST=storefront_test
POSTGRES_USER=ke7el
POSTGRES_HOST=127.0.0.1
POSTGRES_PASSWORD=ke7elpass
ENV = 'dev'
SECRET = 'THISISSECRET'CREATE USER ke7el WITH PASSWORD 'ke7elpass';
GRANT ALL PRIVILEGES ON DATABASE "storefront_dev" TO ke7el;
GRANT ALL PRIVILEGES ON DATABASE "storefront_test" TO ke7el;- Server - 3000
- Database - 5432
- run
npm run test