- A RESTful API to support online store.
- Index
GET /products
- Show
GET /products/:product_id
- Create [token required]
POST /products
- Index [token required]
GET /users
- Show [token required]
GET /users/:user_id
- Create [token returned]
POST /users
- Current Order by user [token required]
GET /orders/:user_id
- Completed Orders by user [token required]
GET /completedorders/:user_id
This is an list of needed instructions to set up your project locally, to get a local copy up and running follow these instructuins.
- Clone the repository
$ git clone https://github.com/ZeyadTarekk/ShoppingStore-REST-API.git
- Navigate to repository directory
$ cd ShoppingStore-REST-API
- Install dependencies
npm install
- Create .env file and add your environment variables
POSTGRES_HOST
POSTGRES_DB
POSTGRES_TEST_DB
POSTGRES_USER
POSTGRES_PASSWORD
ENV="dev"
BCRYPT_PASSWORD
SALT_ROUNDS
TOKEN_SECRET
- Running database migrations
npm run migrateup
- Running on development mode
npm run start
- Compiling for production mode
npm run build
npm run test
- Node.js
- Express.js
- TypeScript
- PostgreSQL
- Jasmine for testing
Zeyad Tarek |
This software is licensed under MIT License, See License for more information ©ZeyadTarekk.