DistroAPI is an open source REST API for users to find information on many different Linux distributions.
Route | HTTP Methods | Descriptions |
---|---|---|
/distros | GET | Displays all distros |
/distros | POST | Adds new distro |
/distros/:name | GET | Displays distro with specified name |
/distros/:name | PUT | Edits distro with specified name's information |
/distros/:name | DELETE | Deletes distro with specified name |
This project was created with the following technologies:
- Node.JS (v16.13.1)
- Express.JS (v4.17.2)
- MongoDB (v5.0.5)
First clone the repository
git clone https://github.com/braedenkinggg/DistroAPI
Then navigate to the project directory and install the dependencies
cd DistroAPI
npm install
Next add a .env
file to the projects root directory
Add this to the .env
file if you plan on using MongoDB locally
MONGO_URI=mongodb://localhost:27017/databaseName
Otherwise add this replace this example URI with the URI to your atlas cluster
MONGO_URI=mongodb+srv://username:password@cluster0.example.mongodb.net/database_name
And finally start the server
npm start
or
npm run dev