The VCase website which facilitates VGo case unboxing and selection for users.
This react-redux app uses a separated client and server, servers, architecture.
The client aspect is a standalone redux server and all of that is contained within the client
folder.
The server code exists at root level and may soon be moved to a server
folder.
You will need Node.js >= 8.9.4 nvm install 8.9.4
Install dependencies
$ make build
Launch the backend API server and the front end client server in one shot.
$ STEAM_API_KEY="STEAM API KEY" make dev
Also run the VGo mock server for a simple local development flow.
$ make vgo-mock
You will need Node.js >= 8.9.4 nvm install 8.9.4
Install dependencies
$ make build
Generate static files
$ make static-files
Run the server
$ NODE_ENV=production STEAM_API_KEY="STEAM API KEY" BASE_URL="http://vcase.gg" SESSION_KEY="SOME_RANDOM_KEY" PORT=3001 VGO_URL="https://api-trade.opskins.com" VGO_API_KEY="SOME_API_KEY" AFFILIATE_ADDRESS="0x939826f5acff002bf6b898fb8151cac83b2401" npm run server
The application provides a simple health check endpoint that can be used to monitor the status of the app.
$ curl http://localhost:3001/health
{"api":"up"}
Given that this project has no external dependencies other than the VGO API the health of the nodejs server itself is the only thing that needs to be monitored.
The server logs to the standard output by default.