Skip to content

laiboonh/repairs-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Github Actions

Setup

Development

Run Locally

  • sbt run App
  • Visit localhost:8080/api/... to verify that your app is up

Production Ops

To facilitate interaction with Postgres in Heroku

  • admin.Tasks was created to facilitate this
  • sbt console to have sbt console in Local environment
  • heroku run sbt console to have a sbt console in Heroku environment
  • Execute AdminTasks.run in sbt console

History

  • plugins.sbt add in sbt-native-packager plugin for Heroku
  • Environment variable PORT is to be used in heroku to bind to web server
  • Heroku also requires web server host to be 0.0.0.0
  • Heroku Postgres requires communication to be over SSL. So we have to turn on SSL for skunk session
  • http://www.slf4j.org/codes.html#StaticLoggerBinder slf4j provider must be included in build path
  • Added https://github.com/typelevel/kind-projector to support higher-kinded types
  • POSTMAN script to setup global variable which will be used in other request for authorization const token = pm.response.headers.find(h => h.key == 'Authorization').value; pm.globals.set("TOKEN", token);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages