Skip to content

An express backend to mimic glassdoor, integrated with mongodb and with user authentication and authroization features

Notifications You must be signed in to change notification settings

edwintian/company-reviews

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a simple express app to mimic a Glassdoor website backend.

Users register(POST) a new account via the /users/register route, and are allowed to POST company reviews via the /companies/:id/reviews route.

Companies reviews can be gleamed (GET) from /companies/:id route

JWT cookie token is issued at /users/login (POST) and cleared at /users/logout (POST)

  1. npm install

  2. Add .env file to root directory with JWT_SECRET_KEY (value should be 256 bits)

  3. npm run start:dev for Postman testing (You will need a mongo DB instance running on localhost first)

  4. npm run test for automated unit test

About

An express backend to mimic glassdoor, integrated with mongodb and with user authentication and authroization features

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published