Development environment

You can start a development environment by following these few steps :

API

# In your workspace
git clone git@github.com:romainlavabre/backend-free-commit.git
cd backend-free-commit/docker/dev

cp .env.sample .env

# Complete the .env file

docker compose -f compose-full-stack.yaml up -d --build --force-recreate 

docker container ls
api # Java backend
reverse-proxy # Traefik
database # Mysql server
client-database # Adminer

Client

# In your workspace
git clone git@github.com:romainlavabre/frontend-free-commit.git
cd frontend-free-commit

yarn && yarn start

Location

Site
URL

API

http://locahost/api

Database GUI

http://locahost/database

API GUI

http://locahost:3000

Update changes

API

docker compose up -d --build --force-recreate api && docker container logs api -f

# For a slower computer

docker compose up -d --build --force-recreate api && sleep 2 && docker container logs api -f

Client

Updates are automatically reloaded with the websocket provided by the React development server

Database

If you want freeze update, set

spring.jpa.hibernate.ddl-auto=update

to

spring.jpa.hibernate.ddl-auto=none

And reverse it if you want updates to be automatically applied

Last updated