Sign inSign up

yumaeda/kojinten-front

By yumaeda

•Updated over 6 years ago

Frontend (nginx + React.JS) Image

Image
0

353

yumaeda/kojinten-front repository overview

⁠kojinten-front

Repository for Kojinten Frontend

⁠How to Use

⁠1. Setup Mac

Refer to mac⁠ repository.

⁠2. Install required modules
npm install
⁠3. Run code formatter & linter
npm run fix
⁠4. Compile
npm run build
⁠5.a. Run locally
npm start
⁠5.a. Run locally via Docker
docker build -t kojinten-front:latest .
docker run --rm -p 8080:80 kojinten-front:latest
⁠6. Test

Open the below URL:

http://localhost:8080
⁠7. Login to the nginx container
docker exec -it <CONTAINER_ID> sh
⁠8. Push Docker image to the Docker Hub
docker login
docker push yumaeda/kojinten-front:latest

Tag summary

Content type

Image

Digest

Size

8.8 MB

Last updated

over 6 years ago

docker pull yumaeda/kojinten-front