inomag / OpenWeightlifting

Repository that is deployed for the OpenWeightlifting site

Home Page:https://www.openweightlifting.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Repository that is deployed for the OpenWeightlifting site

https://www.openweightlifting.org

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Go 42.8%Language:Python 30.4%Language:TypeScript 23.7%Language:JavaScript 2.0%Language:Makefile 0.6%Language:Dockerfile 0.5%Language:CSS 0.0%