Make sure you have the following packages installed on your machine: docker, docker-compose, colima, just. If you do not have these packages installed, follow these steps:
- download and install docker
- install docker-compose (
brew install docker-compose
) - install just (
brew install just
) - download and install colima (
brew install colima
)
Steps to run app for the first time:
- Add
.env
file in the./server
directory with the following variables:PORT
is the port the server will run on (i.e. 8080).DATABASE_URL
is the url Prisma ORM uses to connect to the postgres database. It should follow this formatpostgres://${USERNAME}:${PASSWORD}@db:${DB_PORT}/resume_db
- Add
.env
file to the./ui
directory with the following variables:REACT_APP_BASE_URL
The value should look something like this:http://localhost:${BACKEND_PORT}/api/resumes
- Run
just install-ui
followed byjust install-node
. - Once colima is installed, you can run
just setup
. This will start up colima with the correct memory allocations, build the ui, and backend images - Next, run
just up
to start up the postgres, node, and react containers. - Visit
localhost:3000
and you are ready to make your first resume!