This is the project that powers scrimpton.com. It is split into two areas:
Backend (/server
):
var/data
).Frontend (/gui
):
There are also some files to give an example of how the service can be deployed in /deploy
.
apt install docker.io docker-compose
)apt install direnv
- remember to install shell hook e.g. direnv hook bash > ~/.bashrc
)From the gui directory:
npm install
.npm run start-prod
. This will not require any
local server and will use the live scrimpton.com API.If the local server is running you can use npm run start
to proxy the
API to the local running API.
From the server directory:
Setup:
make setup
make build
.make init.all
(only needs to be done once, or after the raw data is changed)make dev.services.start
make run
.Note that invalid API keys will be used (see .envrc). These may cause some things not to work correctly.
More info: server README
proto/search.proto
.make generate
.pkg/service/grpc/search.go
.gui
directory run npm run generate-api-client
to sync the GUI client with the latest API definitions.More info: GUI README
Once everything is set up, you can then switch to using tilt to run all the services.
With nothing running you can run tilt up
from the root directory, and it will start everything for the API and UI.
Tilt has its own UI to show the services' status, but you can access the scrimpton UI on the normal port: http://localhost:4200
./deploy/docker-compose.yaml
with correct image names/versions and credentials.docker-compose up -d