The Devpedia API is a Node.js-based API that utilizes MongoDB as its backend database.
Before running the Devpedia API, make sure you have the following installed:
- Node.js: Download and install Node.js
- MongoDB: Download and install MongoDB
-
Clone the repository:
git clone https://github.com/your-username/devpedia-api.git
-
Install the dependencies:
cd devpedia-api npm install
-
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>
-
Start the server:
npm start
GET /api/get-resources
: Get all the resourcesPOST /api/post-resources
: Post the resources
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for more information.