Skip to content

eoguvo/Auth-node

Repository files navigation

header auth node

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