Dev Resources API is an API that provides a collective of free resources for software developers to enhance their skills and enable continuous learning.
To use this API, you will need to have an mongoose account and set up a mongodb cluster to store the resource data. You will also need to have Node.js and npm installed on your machine.
-
Clone this repository to your local machine.
git clone https://github.com/DevEducate/dev-resources-api.git
-
Install the dependencies.
npm install
-
Set up your MongoDB connection with your database using Mongoose. You can add the following code to your
.env
file in the root directory of the project:DATABASE_URL=mongodb+srv://<USERNAME>:<PASSWORD>@cluster0.xutqnbl.mongodb.net/<CLUSTER_NAME>?retryWrites=true&w=majority
Create a MongoDB database for your resource data. You can use a cloud-based MongoDB service like MongoDB Atlas or run a local instance of MongoDB. See the MongoDB documentation and Mongoose documentation for more information.
npm run seed
npm run dev
Make requests to the API at http://localhost:3000
or your custom port picked in your .env
file defined as PORT
. See the API documentation for more information on the available endpoints.
Contributions to this project are welcome! To contribute, please follow the GitHub flow and submit a pull request.
This project is licensed under the MIT License.