frontend/
contains frontend code and Dockerfile
backend/
contains backend code and Dockerfile
First make sure your machine is installed Docker and run it.
-
Change the directory to frontend and run
docker build -t <your-username/project-name> .
. Don't forget the.
behind the tag name.- For example, I run this in my machine.
docker build -t oungseik/mini-pos-fe .
- For example, I run this in my machine.
-
Run the container with
docker run -p 4173:4173 -t <your-username/project-name>
- For example, I run this in my machine.
docker run -p 4173:4173 -t oungseik/mini-pos-fe
- For example, I run this in my machine.
The app can be visit on the http://localhost:4173
.
The frontend is configured to make API call from http://localhost:3000
. But you can configure.
For more information, Please read frontend/README.md
-
Change the directory to frontend and run
docker build -t <your-username/project-name> .
. Don't forget the.
behind the tag name.- For example, I run this in my machine.
docker build -t oungseik/mini-pos .
- For example, I run this in my machine.
-
Run the container with
docker run -p 3000:3000 -t <your-username/project-name>
- For example, I run this in my machine.
docker run -p 3000:3000 -t oungseik/mini-pos
- For example, I run this in my machine.
The server will on the http://localhost:3000/
.
For more information, Please read backend/README.md