Skip to content

dkwon1223/stack-pedia-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

StackPedia API

This application is the back-end server for the StackPedia front end React application.

Technologies Used

MongoDB Express.js NodeJS

Installation

  1. Clone down this repository.
  2. Change into the new directory.
    • cd stack-pedia-api
  3. Install the dependencies.
    • npm install

Usage

  1. To fire up the server, run node server.js OR nodemon server.js.

Endpoints for Local Server

url verb options sample response
http://localhost:8080/api/v1/technologies/all GET not needed Array of all existing technologies: [{ _id: 5, name: 'Python', type: 'Programming Language'...}, {_id: 6, name: "Java", type: "Programming Language"...}, ... ]
http://localhost:8080/api/v1/technologies/:category GET not needed Array of technologies sorted by category: [{overall_type: <category>}, {overall_type: <category>}... ]
http://localhost:8080/api/v1/technology/:id GET not needed Single technology by id: {_id: <id>...}
http://localhost:8080/api/v1/stacks/all GET not needed Array of all existing stacks: [{ _id: 5, name: 'MERN Stack', type: 'fullstack'...}, {_id: 6, name: "LAMP Stack", type: "fullstack"...}, ... ]
http://localhost:8080/api/v1/stacks/:type GET not needed Array of stacks sorted by category: [{overall_type: <category>}, {overall_type: <category>}... ]
http://localhost:8080/api/v1/stack/:id GET not needed Single stack by id: {_id: <id>...}

Endpoints for Deployed Server(used in the front end application)

url verb options sample response
https://stack-pedia-api.adaptable.app/api/v1/technologies/all GET not needed Array of all existing technologies: [{ _id: 5, name: 'Python', type: 'Programming Language'...}, {_id: 6, name: "Java", type: "Programming Language"...}, ... ]
https://stack-pedia-api.adaptable.app/api/v1/technologies/:category GET not needed Array of technologies sorted by category: [{overall_type: <category>}, {overall_type: <category>}... ]
https://stack-pedia-api.adaptable.app/api/v1/technology/:id GET not needed Single technology by id: {_id: <id>...}
https://stack-pedia-api.adaptable.app/api/v1/stacks/all GET not needed Array of all existing stacks: [{ _id: 5, name: 'MERN Stack', type: 'fullstack'...}, {_id: 6, name: "LAMP Stack", type: "fullstack"...}, ... ]
https://stack-pedia-api.adaptable.app/api/v1/stacks/:type GET not needed Array of stacks sorted by category: [{overall_type: <category>}, {overall_type: <category>}... ]
https://stack-pedia-api.adaptable.app/api/v1/stack/:id GET not needed Single stack by id: {_id: <id>...}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published