Backend server for Blog Frontend Web application.
Created using Node.js, Express.js and PstgreSQL. This server inlcudes Node.js CRUD operations and fetching with PstgreSQL queries . Also to provide security, This server uses JSON Web Token and verify user requests. The images are received from fronend and uploaded using multer middleware.
To run the application
- Clone this repo
- Run
npm install
- Run
npm start
- Node.js
- Express.js
- PstgreSQL
- Knex
- Bcrypt
- JSON Web Token
- Multer
Add your PstgreSQL url PG_DATABASE_URL
in the index.js
if you are using local postgres database you can use the following:
PG_DATABASE_URL=postgres://{user}:{password}@{hostname}:{port}/{database-name}
Add the JWT secret JWT_SEC
in controllers/auth.js
and controllers/post.js
- Ali Darraji - https://github.com/adarraji