Skip to content

workout-lol/workout-lol

Repository files navigation

Workout.lol

The easiest way to create a workout routine

Contributors Forks Stars Issues Languages Repository Size

About

  • A small web application to create workouts based on your available equipment and the muscles you want to train.

Link

  • You can self-host the project or use the web app on workout.lol.

Steps to run it locally

  1. Clone the repository to your local machine
    git clone https://github.com/Vincenius/workout-lol.git

  2. Navigate to the app directory
    cd workout-lol

  3. Install the necessary dependencies
    yarn

  4. Initialize the Mongo DB by importing the dump files from lib/dump/prod:

    4.1 For the .metadata.json, you'll have to do this :

    mongoimport --uri mongodb+srv://<USERNAME>:<PASSWORD>@<CLUSTER_NUMBER>.<URI>.mongodb.net/<DATABASE> --collection <COLLECTION> --type json --file <FILEPATH>

    4.2 For the .bson, you'll have to do this : mongorestore --uri mongodb+srv://<USERNAME>:<PASSWORD>@<CLUSTER_NUMBER>.<URI>.mongodb.net/<DATABASE> --collection <COLLECTION> <FILEPATH>

  5. copy the .env.dist file to .env and set environment variables as described in the file

  6. Start the local development server
    npm run dev

  7. Open your browser to http://localhost:3000

Steps to run it with docker

  1. Clone the repository to your local machine
    git clone https://github.com/Vincenius/workout-lol.git
  2. Copy the .env.docker file to .env and set environment variables as described in the file (do not modify the MONGODB_URI if you wish to use the mongodb container)
  3. Run the docker compose file at the root of the project
    docker compose -f docker/docker-compose.yml up -d --build
  4. Wait for the applications to be up (docker ps to get the status)
  5. Open your browser to http://localhost:3000

Contributors

wweb_dev BradiceanuM ngthuongdoan pgossa

Supporters

medecau EL alvaro devjev
medecau  EL alvaro devjev

Become a supporter by donating on Ko-Fi:

https://ko-fi.com/workout_lol

Public Metrics

💸 Cost Breakdown

📈 Analytics

License

MIT License