Skip to content

Latest commit

 

History

15 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tech Companies API

The technologies used in creating this project are:

Node.js, Express.js, Mongoose, and MongoDb

Project Description

This is an API that implements the CRUD endpoints. It creates, reads, updates and deletes data from the database with data including the company name, company’s head office,company e-mail, company phone, number of employees and the company's website

🚀 How to get started

  • Make sure to have Git and Node.js installed on your computer
  • Clone the project by running: git clone https://github.com/JudySeyram/Tech-Companies`
  • cd into the project and run npm install
  • create a .env file in the root folder and copy the content in the .env.exampleinto it.
  • run npm start to start the project.

These are the HTTP response codes used in this project:

Status Codes Indication
200 This OK status code indicates that a request has succeeded
400 This bad request error status code indicates that the request sent to the server is incorrect
404 This not found error status code indicates that the resource is not found.
500 This internal server error status code indicates that something has gone wrong on the web server

The routes featured in this project:

API routes(url) Method Description
/ GET Api home page
/getOne/id GET Get a company by ID
/post POST Add a company to the database
/update/id PATCH Update a company information by ID
/delete/id DELETE Delete companyfrom database

👤 Author:

Github Linkedin
@judyseyram Judith Amegbe

About

First Nodejs Project at Laptop4Developers

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages