- Clone this repository
$ git clone https://github.com/PatrickRNG/RankMyApp_challenge
- Configure environment variables - configurations
- If you already have Docker installed, run:
$ docker-compose up --build
- Go to http://localhost:3001/
Create a ".env" file in the root of the /server folder. Inside set the below env variables. (For testing purposes there is already a .env.example in this repository (server folder), just copy it).
The environment variables
- PORT -> Port for the web server
- MONGO_URI -> Mongo URI for MongoDB configuration
- CLIENT_ID -> ClientID for the smtp configuration
- CLIENT_SECRET -> Secret of your Google Oauth
- REDIRECT_URL -> Configuration for Google Oauth
- REFRESH_TOKEN -> Configuration for Google Oauth
- More tests!
- Better way to control every E-mail sent by each alarm
- More environment variables configurations
PS
The ClientId, ClientSecret and other Google/Auth information in here are just for testing purposes, specificaly for this test/challenge. You should generate your own SMTP and Google Oauth info.