Skip to content

coruja182/fullstack-playground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Full Stack Playground

Project requirements

  • Docker Desktop
  • NodeJS 20
  • Java 17

Environment Setup

  • Install Docker Desktop
  • Make sure your JAVA_HOME is set to JDK 17
  • Make sure node --version responds version 20

Running Locally

docker compose up --build --force-recreate

To shutdown you just need to Ctrl + C or in another shell type docker compose down

After starting up, the front end should be available on port 5173 (http://localhost:5173)

Front End

front-end TODOs

  • Dockerfile should use a different user, not root
  • Test/Implement a production build

Build Image

cd frontend
docker build --target dev -t frontend:dev

# to run
docker run -p 5173:5173 frontend:dev

# to run image, but access the shell
docker run -p 5173:5173 -it frontend:dev /bin/sh

References

Problems found during dev process and related references