Skip to content

This repository contains a basic authetification API built in node.js, and data store MySQL.

License

Notifications You must be signed in to change notification settings

NexCreep/Basic-Auth-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Basic Auth API

About

In this repository contains a basic authenticate API built in Javascript with node.js, and the dependencies:

And the most important tool much of love ❤️

Installation

Prerequisites

  • Node.js: >= 16.0.0
  • Yarn : >= 1.22.0
  • Python: >= 2.*
  • Extracted directly from bcrypt repository:
    • Windows users will need the options for c# and c++ installed with their visual studio instance.
    • OpenSSL - This is only required to build the bcrypt project if you are using versions <= 0.7.7. Otherwise, we're using the builtin node crypto bindings for seed data (which use the same OpenSSL code paths we were, but don't have the external dependency)

Installation

One single line: $:~ yarn install

Setup

  • Create un root project dir the next file: $:~ touch .env

  • Add the next lines to the file:

    PORT=**Backend port. Default port 5500**
    DBHOST=**Your host IP of MySQL**
    DBNAME=**Your database name**
    DBUSER=**Your MySQL username**
    DBPASS=**Your MySQL user password**
  • In package.json we can see two script options:

    • start: For production enviroments.
    • dev: For development enviroments Choose anyone you want
  • Finally we excute the server like this:

    $:~ yarn [start | dev]

I hope you liked ❤️

Special greeting to you, that watch this repo :)

About

This repository contains a basic authetification API built in node.js, and data store MySQL.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published