Skip to content

Lamisa-zamzam/zamzams-collection-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My Mongodb Server

Welcome to my server!!! Here you can request a number of data which is basically the data of "Jerseys" from this server. By calling The Root API, you can get a simple "Hello World" which is not necessarily useful, but root URL is always important. So, I wanted to make you know that.

Secondly, if you call The Products API, you will get the data of several jerseys to be sold in an array. The array contains an object for each jersey and each object contains some properties, namely: _id, id, product(title of the jersey), price, detail and image(URL to the picture of the jersey). Though they are not real ones, however, that could work great as placeholders.

If you want to get the information of a specific product, you're gonna do that with https://powerful-springs-02476.herokuapp.com/product/:id. But wait!!! You have to replace :id with the id of the product you want to get and also this API is private, so you are not going to get the info until you are logged in in My Website Zamzam's Collection. Actually, this server was made only for this website, so this website has a power over this server. You can add product to this server, add an order for your chosen jersey and even delete or Edit a product form here using that website. But again, you have to be logged in in that website and have the id of the specific product in the cases you need it.

My project includes:

  1. Node.js,
  2. Mongodb,
  3. Express.js,
  4. Cross Origin Resource Sharing (CORS) ,
  5. Environment Variables and
  6. Heroku Deployment.

Contributing

Pull requests are welcome. For major changes, open an issue first and let's discuss what you want to change.

About

Server for my website "Zamzam's Collection". Used MongoDB, node.js and express.js.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published