GithubHelp home page GithubHelp logo

marioperdiguero / login-template Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 37 KB

A simple login and register template with Node Js

License: MIT License

JavaScript 100.00%
javascript login-system node-template nodejs template

login-template's Introduction

๐Ÿ’ป Login Template

A simple login and register template with Node Js

๐Ÿ›  Project status

Project finished and ready to use

๐Ÿ“ƒ Project task list

  • โœ… Folder Structures
  • โœ… JWT & Errors Middleware
  • โœ… User Controller
  • โœ… API Routing
  • โœ… User Model
  • โœ… User Service
  • โœ… API Testing

โš™ Run Locally

Clone the project

  git clone https://github.com/marioperdiguero/Login-Template.git

Go to the project directory

  cd my-project

Install dependencies

  npm install

Create a folder at the root of the project called config. Then, inside that folder create a file called "db.config.js", and inside the file paste the following code:

  module.exports = {
    db: 'your MongoDB connection string will go here'
  }

Start the server

  npm run start

๐Ÿ”Ž API Reference

Register New User

  POST /users/register
Http Body:
Parameter Type Description
username string Required. The user name
password string Required. The user password
email string Required. The user email

Login User

  POST /users/login
Http Body:
Parameter Type Description
username string Required. The user name
password string Required. The user password

Example of page protected by authentication

  GET /users/user-profile
Http Headers:
Parameter Type Description
Authorization string Required. Basic + JWT Token of user

Authors

login-template's People

Contributors

marioperdiguero avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.