/devpedia_api

API made for the upcoming devpedia app

Primary LanguageHTMLMIT LicenseMIT

Devpedia API

The Devpedia API is a Node.js-based API that utilizes MongoDB as its backend database.

Prerequisites

Before running the Devpedia API, make sure you have the following installed:

Getting Started

  1. Clone the repository:

    git clone https://github.com/your-username/devpedia-api.git
  2. Install the dependencies:

    cd devpedia-api
    npm install
  3. Configure the environment variables:

    Create a .env file in the root directory and provide the following variables:

    MONGODB_URI=<your-mongodb-uri>
    PORT=<port-number>
    
  4. Start the server:

    npm start

API Endpoints

  • GET /api/get-resources: Get all the resources
  • POST /api/post-resources: Post the resources

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for more information.