This is Restfull API using ExpressJS
- NodeJS
- ExpressJS Framework
- PostgreSQL as DBMS
- Postman for testing
Please copy this project for learning by cloning from Github in a way,
-
clone code with this
git clone [**link github**]. -
please create
.envfile for setting in this projectMODE=DEV DB_HOST=your DB_HOST DB_USER=your user DB_PASS=your password DB_DATABASE=your database DB_PORT=port postgres REDIS_HOST=redis REDIS_PORT=port redis REDIS_PASS=your password JWT_KEYS = your jwt keys CLOUD_KEY = your cloud key CLOUD_SECRET = your CLOUD_SECRET CLOUD_NAME = your CLOUD_NAME CLOUD_ENV = your CLOUD_ENV -
Create database with postgresql
-
create table Product and Category
-
fill column in product with id, name, price, image, id_category
-
fill column in category with id, name
-
and then use postman for trying this API
-
code is from Postman