Skip to content

DistroAPI is an open source REST API made to help people discover more information on Linux distributions

Notifications You must be signed in to change notification settings

braedenkinggg/distro-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DistroAPI

Tux the penguin

Table of Contents

About

DistroAPI is an open source REST API for users to find information on many different Linux distributions.

Routes

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

Technologies

This project was created with the following technologies:
node.js express.js mongodb

  • Node.JS (v16.13.1)
  • Express.JS (v4.17.2)
  • MongoDB (v5.0.5)

Development Setup

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

About

DistroAPI is an open source REST API made to help people discover more information on Linux distributions

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published