muthuannamalai12 / REST-fetch

A REST API service for development and testing

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

About Us

GitHub contributors Issues PRs Forks Stars Join the chat at https://gitter.im/fetch-lobby/community

A community-owned REST API service for testers and developers. Fetch provides REST API endpoints for different types of placeholders, which can be easily used during testing and development without the need for creating sample data manually.

Technology Stack

  • MongoDB
  • Express
  • NodeJS
  • Typescript
  • CI/CD

Try it out

Installation

There are two ways of installing the project on your local Machine 🚀

  • Using Docker

    • Fork and clone the project
    • Install and configure your Docker, following this.
    • Rename .env.example to .env.
    • Once docker is installed run the followig commands.
      • docker-compose build
      • Once the build is complete, run docker-compose up
  • Conventional Setup

    • Fork and clone the project
    • cd fetch/ and run npm install to install dependencies
    • Setup mongodb atlas following this tutorial
    • Enter the credentials in .env.example and rename it to .env.
    • Make sure to set USE_DOCKER= false in .env file.
    • Run npm run dev to run the project in development

Testing

  • The endpoint usertest which follows the same schema as the users/ endpoint, must be used for testing
  • All other endpoints except usertest should involve methods which must not change the data on the server (read-only)
  • To test the endpoints provided by the application, tools such as postman can be used

Documentation

To understand the aim, scope and technologies used in the project, please see the documentation

Help & support

If you are stuck somewhere or do not understand what to do, feel free to reach out to mentors/ admin in discord.

Contribution

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please refer the contribution guideline before making any contribution.

Contributors

License

This project is licensed under the GPL V3 License - see the LICENSE.md file for details

About

A REST API service for development and testing

License:GNU General Public License v3.0


Languages

Language:TypeScript 88.1%Language:Shell 10.6%Language:Dockerfile 1.3%