Skip to content

matthieuh/containous-codetest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Containous Code Test

Description

This app gives ability to list and merge Github pull requests

Demo: https://containous-codetest.matthieuh.now.sh

Preview

Run in dev mode

  • Create a github oauth app to get a github app id/secret filling http://localhost:3000/auth as callback url
  • Create/fill /client/.env and /backend/.env based on .env.example files
  • On client folder run yarn dev
  • On server folder run yarn dev

An alternative is using now dev cli to have exact same behaviour locally than in prod:

  • Create a github oauth app to get a github app id/secret filling http://localhost:3000/auth as callback url
  • Create/fill /client/.env.build and /backend/.env based on .env(*).example files
  • On client folder run now dev --listen 3000
  • On server folder run now dev --listen 8080

An 2nd alternative is using docker running: docker compose up -d

Deploy app in prod

  • Add now secrets using now secrets add @containous-codetest-gh-id <value> and now secrets add @containous-codetest-gh-secret <value> commands
  • On server folder run now --prod
  • On client folder run now --prod