Skip to content

rebuy-de/lunch-mator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lunch-Mator

The lunch meetup app.

lunch-mator

Dev setup

DB

  1. Install postgress (for mac try this)
  2. once you have done the install go to terminal and execute the following commands
  3. create a database called lunch_mator
  • createdb lunch_mator
  1. create user app
  • createuser -P -s -e app
  • When prompted, provide the password as root

NPM and UI

  1. You will need NPM 8.11.3
  2. nvm is an easy to use Node Env Manager
  3. navigate to lunch-mator/ui
  4. execute npm install
  5. next up execute npm run build this will build the UI (you should not see any errors)
  6. if you are developing the UI you can run npm run build-watch

Scala Play application

The backend is a scala play 2.6 application inorder to run this you will need to install sbt 0. try brew install sbt@1 0. once you have sbt you can execute sbt run -Dconfig.resource=application.test.conf -Dlogger.resource=test-logback.xml in the project root. This is start up the play application server(NOTE: This will not build the UI that you will need to do manually, follow steps above) 0. Once you have the application running, you can navigate to http://localhost:9000 to see the application in action

Run

For dev

sbt run -Dconfig.resource=application.test.conf -Dlogger.resource=test-logback.xml

For prod

sbt dist

and then

unzip DIST_FILE
sudo DIST_FILE/bin/lunch-mator -Dhttp.port=80

Releases

No releases published

Packages

No packages published

Languages

  • Scala 93.9%
  • TypeScript 4.8%
  • Other 1.3%