codeuino / social-platform-donut-backend

Donut API:
http://donut-api-prod.codeuino.org/
GNU General Public License v3.0
24 stars 57 forks source link
expressjs hacktoberfest jest jwt mongodb morgan nodejs

social-platform-donut-backend

GitHub issues GitHub license CodeFactor

Prerequisite:

These are the requirement that should be installed locally on your machine.

How to setup node.js on your machine?

How to setup MongoDB on your machine?

Note: You can also use the MongoDB servers like Mlab or MongoDB Cluster server

How to setup redis on your machine?

How to set up this project locally?

Note: Setup the environment variables as mentioned below

Run unit test

Use the given below command to run all the unit test cases.

npm run test

What are the environment variables required to run the project locally on a machine?

Note: To get SENDGRID_API_KEY follow the Sendgrid official docs

Workflow (After setup)

Must follow the steps to use the platform:

  1. Create an organization - API
  2. Register as an admin - API
  3. Now login and use the features implemented - API
  4. To know more about features please go through the docs - Docs
NOTE: Please make sure when you setup for the first time your database is empty.

Allowed HTTPs requests:

POST    : To create resource 
PATCH   : To Update resource
GET     : Get a resource or list of resources
DELETE  : To delete resource

Description Of Donut API Server Responses:

Code Name Details
200 OK the request was successful.
201 Created the request was successful and a resource was created.
204 No Content the request was successful but there is no representation to return (i.e. the response is empty).
400 Bad Request the request could not be understood or was missing required parameters.
401 Unauthorized authentication failed or user doesn't have permissions for requested operation.
403 Forbidden access denied.
404 Not Found resource was not found.
405 Method Not Allowed requested method is not supported for resource.
409 Conflict resourse with given id already exist.
429 Too many requests sent too many requests to the server in short span of time



Contributing 💻

We are happy to see you here and we welcome your contributions towards Donut-Platform. Contributions are not limited to coding only, you can help in many other ways which includes leaving constructive feedback to people's Pull Request threads also.

Donut platform also provides an extensive list of issues, some of them includes labels like good-first-issue, help-wanted. You can take a look at good-first-issue issues if you are new here but you are free to choose any issue you would like to work on.

If there's no issue available currently, you can setup the project locally and find out the bugs/new features and open issues for that and discuss the bugs or features with the project maintainers or admins.

After choosing an issue and doing changes in the code regarding that, you can open up a Pull Request (PR) to development branch to get your work reviewed and merged!