Skip to content

Moki00/divine-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is the backend for Divine Homes Services website

using Node.js

npm run dev  # Start in development mode (with Nodemon)
npm start    # Start in production mode (with Node.js)
set up with npm install express cors

Create User

curl -X POST http://localhost:5000/api/users -H "Content-Type: application/json" -d '{"name": "Gokame Man", "email": "[email protected]"}'

Get All Users

curl -X GET http://localhost:5000/api/users

Get User by ID

curl -X GET http://localhost:5000/api/users/1

Update User

curl -X PUT http://localhost:5000/api/users/1 -H "Content-Type: application/json" -d '{"name": "Some Updated Name", "email": "[email protected]"}'

Delete User

curl -X DELETE http://localhost:5000/api/users/1

Register User

curl -X POST http://localhost:5000/api/auth/register
-H "Content-Type: application/json"
-d '{"name": "John Doe", "email": "[email protected]", "password": "securepass"}'

Login User

curl -X POST http://localhost:5000/api/auth/login
-H "Content-Type: application/json"
-d '{"email": "[email protected]", "password": "securepass"}'

About

backend for Divine Homes using Node.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published