/Auth-node

An simple authentication app built with node.js and typescript

Primary LanguageTypeScript

header auth node
author - Gustavo Henrique GitHub stars
language - PortuguΓͺs

Auth-node

An simple authentication app built with node.js and typescript


πŸŽ‰ Auth-node 1.0 πŸš€ Ready! πŸŽ‰

Table of contents

🎲 Running

Prerequisites

Before start, you need have installed in your machine: Git, Node.js (npm) and Docker-compose. In addition, it is good to have an editor to work on the code, such as VSCode.

follow those steps to install:

# clone the repository in your machine
$ git clone https://github.com/Gustavo-Henrique-br/Auth-node.git

# Install the dependencies:
$ yarn
# or
$ npm install

# Setup database
$ docker-compose up

# Rename the file .env.example to .env

# Optional: generate public and private keys
$ openssl genrsa -out rsa.private 1024
$ openssl rsa -in rsa.private -out rsa.public -pubout -outform PEM
# Copy the content of the files to .env, see examples in .env.example

# Running in dev mode
$ yarn dev
# or
$ npm run dev

# Just building
$ yarn build
# or
$ npm run build

πŸ›  Technologies