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.
# 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