Skip to content

Sadegh-AT/Register-Login-Nodejs-Api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Register Login Node.js Api

Registration project with admin panel where you can see the list of all registered users

Tech Stack

Client: Html, Css, Javascript

Server: Node, Express, MySql

Screenshots

App Screenshot

App Screenshot

Deployment

To deploy this project run:

  npm i 
  npm start 

after installing the required packages, you need to create a table named "users" using the mysql database. And then add your database name in the "registerDB" file

const RegisterDB = mysql.createConnection({
  host: "localhost",
  user: "root",
  password: "",
  database: "Your database name",
});

API Reference

Get all Users

  GET /api/users/all-users

Get User

  GET /api/users/get-user/:id
Parameter Type Description
id int Required. Id of user to fetch

Add new user

  POST /api/users/new-user

Remove user

  GET /api/users/remove/:id
Parameter Type Description
id int Required. Id of user to fetch

Edit user info

  GET /api/users/edit/:id
Parameter Type Description
id int Required. Id of user to fetch

About

simple register and login with node js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published