Giter VIP home page Giter VIP logo

jobsboard's Introduction

Jobsboard

This is the effect of my participation in the course Typelevel Rite of Passage. It’s been a great adventure. I highly recommend this course and other fantastic content available on rockthejvm.com .

How to build (dev)

In one terminal start the DB: docker compose up.

In another one the server (the conf is in server/src/main/resources/application.conf; adjust if needed; BTW the stripe keys are for test mode, you won't get money from them πŸ˜‰): sbt "server/run".

In the third one build the frontend: sbt "app/fastOptJS" and then cd app && npm run start (preceded by npm install if needed).

How to build and deploy to staging

The details are described in the last chapter of the course. Here I only explain the general idea.

Build the docker image by invoking stagingBuild / Docker / publishLocal in sbt (and then save it and upload to your staging env). Adjust conf (server/src/main/resources/staging/application.conf) if needed and note what env variables need to be set.

Build the frontend: sbt "app/fullOptJS". Then cd app && npm run build and upload the contents of the dist directory to your staging, to the directory served by the server (eg. /var/www/jobsboard).

Then configure you server (nginx/apache/whatever) so that all calls to …/api are routed to the backend (adjust the port). Define the error page 404 so that se server responds with 200 and serves index.html (the app will handle the error). Eg. for nginx:

location /api {
    proxy_pass http://localhost:4041
}

error_page 404 =200 /index.html;

And… run the app. Don’t forget to provide a Postgres DB with the schema described in sql/init.sql ;)

My certificate πŸŽ‰

My certificate.

jobsboard's People

Contributors

dlakomy avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.