Skip to content

jacobrozwadowski/sellcars-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SellCars Customer Module

SellCars Customer module is a Backend server that handles CRUD operations for customers. Made with Node.js, Express and Jsonwebtoken

Installation

Use the package manager npm to install all required dependencies.

cd sellcars-backend
npm install

Usage

To start the typescript project use:

npm start

To build the project as javascript into the ./dist folder use:

npm run build

The project has the function to insert three test users: To execute that function use:

node ./testing/insertUsers.js

To test the backend we can use tools like Postman or HTTPie available API endpoints are:

http://localhost:3000/auth/login
http://localhost:3000/api/customers (Get all customers)
http://localhost:3000/api/customers/:id (Get customer by Id)
http://localhost:3000/api/customers (Create customer)
http://localhost:3000/api/customers/:id (Update customer)
http://localhost:3000/api/customers/:id (Delete customer)

Environment variables

JWT_SECRET=
JWT_EXPIRES_IN=
MONGODB_URI=

Info

The project will be updated in the near future as a "side project". Developed by Jacob R.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published