UI and Backend for the Marketplace Games app
Install the dependencies...
cd marketplace-games-ui/client
yarn install
cd marketplace-games-ui/backend
go get
For local development we utilize webpack dev server for the client and proxy all API requests to the backend service running on localhost:8080
.
cd marketplace-games-ui/client
yarn dev
Navigate to localhost:5000. You should see the marketplace games app
running. Edit a component file in src
, save it, and reload the page to see your changes.
cd marketplace-games-ui/backend
go run main.go
The backend go server will start on localhost:8080
cd marketplace-games-ui/client
yarn build
cd marketplace-games-ui/backend
go build -o ../service .
cd ..
./service
Then open localhost:8080
in your browser.
From root run the following cmd:
docker build -t marketplace-games .
then after the image has been successfully built run:
docker container -d -p 8080:8080 marketplace-games:latest
Once the container is up and running open localhost:8080
in your browser.