Skip to content

eupston/eidos_contemporary_website

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Eidos Contemporary Jewelry Website

To Use:

npm install

** You must have config.env file to connect to DB **

node seeder -i to insert data from _data folder

node seeder -d to erase all data

Launch Backend:

cd backend

npm start

backend is listening on localhost:5000

Launch Frontend:

cd frontend

npm start

frontend is listening on localhost:3000

Current Working Endpoints:

localhost:5000/api/v1/users     --> GET all users
              /api/v1/users/:id --> GET one user by ID  (get from DB with get all)
              /api/v1/users     --> POST
              /api/v1/users/:id --> PUT 
              /api/v1/users/:id --> DELETE

Using advanced filtering and querying

useful links:

https://docs.mongodb.com/manual/reference/operator/query/gt/

https://mongoosejs.com/docs/queries.html

localhost:5000/api/v1/users?select=name,phone  // will only return name and phone

localhost:5000/api/v1/users?ring_size[lte]=11&select=name,ring_size // return name and ring_size of those with ring_size lte 11 

Deployment:

Staging

cd frontend

npm run build

Commit and Push Changes on Develop Branch

Merge Develop into Staging

Staging Site is Live here:

https://eidos-contemporary.herokuapp.com/

About

Eidos Contemporary Jewelry Website

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published