Skip to content

Lamisa-zamzam/zamzam-international-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My Mongodb Server

Welcome to my server!!! Here you can request a number of data which is basically the data for a Visa Agency Website 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 Services API, you will get the data of several visa to be ordered by the customers in an array. The array contains an object for each visa and each object contains some properties, namely: _id, id, serviceName(title of the service, e.g. visa), price, detail and image(URL to the picture of the visa). Though they are not real ones, however, that could work great as placeholders.

You can get all the reviews that people gave to the visa agency form The Reviews API. Every review object has properties like _id, name(name of the user), profession, feedback, imgURL(image of the user).

If you want to get the information of a specific service, you're gonna do that with https://morning-shelf-52119.herokuapp.com/service/:serviceName. But wait!!! You have to replace :serviceName with the name of the visa 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 International. Actually, this server was made only for this website, so this website has a power over this server. You can add service to this server, add an order for your chosen visa, give a review about our service, make an admin of the site and even delete or Update a service form here using that website. But again, you have to be logged in in that website and have the id and name of the specific service in the cases you need it.

You are able to check if a person is admin in the website with This get API. Note that you have to provide the email of the person as a query in the URL. This API https://morning-shelf-52119.herokuapp.com/bookings/:email gives all the bookings that have been made form a specific email. And to get a single service info by its id, use https://morning-shelf-52119.herokuapp.com/service/:id.

My project includes:

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

Roadmap

=> considring adding mongoose

Contributing

Pull requsts are welcome. For major changes, please open a issue first and discuss what you would like to change.

About

Server for my website "Zamzam International". Used MongoDB, node.js and express.js.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published