https://github.com/nyctophilus/storefront-backend
Storefront Backend Udacity nanodegree Project
https://github.com/nyctophilus/storefront-backend
Last synced: about 2 months ago
JSON representation
Storefront Backend Udacity nanodegree Project
- Host: GitHub
- URL: https://github.com/nyctophilus/storefront-backend
- Owner: Nyctophilus
- Created: 2022-06-07T16:29:23.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-06-16T14:58:36.000Z (almost 3 years ago)
- Last Synced: 2025-01-21T12:07:30.565Z (3 months ago)
- Language: TypeScript
- Size: 36.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Storefront-Backend
Storefront Backend Udacity nanodegree Project
## Storefront Backend Project
## Overview
Storefront Backend Project
#### Techs
- PostgreSQL
- NodeJS
- Express
- Typescript
- Jasmine#### How to use
- initailize the project.
`npm install`
`npm start`- Initialize PostgreSQL
`psql -h localhost -U postgres`- create database for dev env
`CREATE DATABASE storefront`- Database port is `5432`
- connect to database
`\c storefront`- show tables
`\dt`- disconnect from database
`\q`#### Migration script for test-db
`npm run test`
#### Migration script for dev-db
`npm run dev`
### Environment Variables
#### default env
`ENV=dev`
#### PostgreSQL dev db
`POSTGRES_HOST=127.0.0.1`
`POSTGRES_DB=storefront`
`POSTGRES_USER=postgres`
`POSTGRES_PASSWORD=1234`#### testing db
`POSTGRES_TEST_DB=storefront_test`
#### password encryption
`BCRYPT_SALT_ROUNDS=10`
`BCRYPT_PEPPER=123xcxzc@af023aaX#`
#### JWT
`JWT_TOKEN_SECRET=sl2X@*asclo*2`