/OpenWeightlifting

Primary LanguageGoBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

OpenWeightlifting

codecov

Local Testing

We've added a docker-compose file to make it easier to test locally. This will spin up a local instance of the backend and frontend services. In production, these services are deployed separately.

docker-compose build
docker-compose up

When you get bored and want to kill it...

docker-compose down

Backend-only

When launching the backend service you'll need to toggle the CORS flag which is done be adding the 'local' argument when calling the executable.

go build backend.go
./backend local

Frontend-only

We prefer to use npm for the frontend stuff.

npm install
npm run dev

Updating the database

To pull the latest results from the all relevant federations, you'll need to run the following command from the python_tools directory:

pipenv install
pipenv run python backend_cli.py --update all

License

Done this under the BSD-3-Clause license. Simply because it's what the sport80 library is under and i'm hella lazy.

Contributing

If you want to contribute, please do! We're always looking for more people to help out. If you're not sure where to start, check out the issues page and join the discord server. https://discord.gg/kqnBqdktgr