aheritier / FloxxApp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

floxxBackendApp

Words

  • Slot : this is a conference with title, kind, start time, end time, day, room
  • TrackInfo : Is more than slot. In track slot information plus hit information
  • Hit : unique id of the slot, percentage and date time of when hit has been down

Deployment

On clever-cloud,

CC_JAVA_VERSION="11"
CC_SBT_TARGET_DIR="httpEngine"
FLOXX_PORT="8080"
PORT="8080"
POSTGRESQL_ADDON_PASSWORD=**to be completed**
POSTGRESQL_ADDON_USER=**to be completed**
POSTGRESQL_MAX_POOL_SIZE=**to be completed**
POSTGRESQL_URI="jdbc:postgresql://**to be completed: Host**/**to be completed USER**"

Locally :

Work with backend

  1. from the root directory run docker-compose up (should start postgres DB)
  2. sbt runDev
  3. from browser : http://localhost:8081

Work on UI

  1. go to front directory
  2. Run 'yarn start-dev'
  3. from browser : http://localhost:8082

Some route are mmocked in webpack.config.js file

roll out

  1. ensure that your master index is clean and fully pushed.
  2. Run sbt goToProd
    1. Process il plugged on remote origin, So take care that remote corresponding to prod target environment
  3. and then just follow the process

Run migration DB

/!\ update env information with targeted env (Prod)

  1. /!\ Run locally sbt with this command line : sbt -Dflyway.url=jdbc:postgresql://{{HOST}}/{{DB}} -Dflyway.user={{User}} -Dflyway.password=
  2. and db/flywayMigrate

Todo

  • Refactoring
    • Finalize migration model -> Domain
    • Move from doobie to quill
  • Upgrade version on front-end side

About


Languages

Language:JavaScript 78.9%Language:Vue 13.1%Language:Scala 6.8%Language:CSS 0.7%Language:HTML 0.5%