Wizard Challenge
Overview
The challenge is to develop a solution that is able to authorization endpoints to user signin/signup.
Building from source
-
Ensure you have
Node.js
installed - goto https://nodejs.org/en/download/package-manager/ to download installer for your OS.PostgreSql
installed or in deployment - goto https://www.postgresql.org/download/ to download installer for your OS. -
Clone this repository to your local filesystem (default branch is 'master')
-
To download the dependencies
npm install
-
Create an
.env
file and fill it out as indicated in.env.sample
-
To run the application, run the following command on the project root folder
npm start
Running npm tasks
Build
For production you need to provide to enviroment variables:
DATABASE
: Database nameDB_USER
: Database user namePASSWORD
: Database passwordHOST
: Host for ProstgreSQL DatabaseKEY
: Key to sign access tokens
With this you need just run the following commands:
-
npm install
-
npm start
to production server ornpm run dev
- To have a live reload debug server.
and the aplication will start in port 3000.
Docker
Additionally, you can use docker container to automatise backend deployment using the image available in docker hub
docker pull gmonteiro/gmonteiro/wizard-challenge:latest
ou building from source following next steps o backend bolder:
docker build . && docker-compose build && docker-compose run nodeapp
See the online backend demo in https://wizard-challenge-api.herokuapp.com/.
Getting Started doc
Postman documentation here.
Contribution guidelines
Not yet