Gym Tracker is a fitness tracking application to track your workouts, fitness goals, and progress!
I created this project to help escape fumbling with Excel spreadsheets and editing Apple notes while at the gym. I wanted something that was simple to use while at the gym, but also had the functionality that I could use when I wasn't actively working out.
All deployments using vercel are given multiple deployment URLs that are automatically generated. The preview deployment is the latest commit on any active branch on jessedelira/gym-tracker
. The production deployment is the latest commit on the main
branch. So when you click into the preview or production deployments on GitHub you will see autogenerated URLs, note when in production folder of deployments the generated URLs are the same as https://gym-tracker.app
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Feel free to deploy however you would like if you don't want to use gym-tracker.app, what is reccomended though for deployment is Vercel. Their services are fantastic to use and free under a hobby account.
If you want to have steps in the README for how to deploy using vercel create an issue and someone can add those steps here.
Preview Deployments Production Deployments
This is an example of how you may give instructions on setting up your project locally. To get a local copy up and running follow these steps.
This is a list things you need to use the Gym Tracker.
-
Clone the repo
$ git clone https://github.com/jessedelira/gym-tracker.git
-
Create MySQL container
$ docker-compose up -d
-
Create .env at root of project and add the following:
- Use this command:
$ openssl rand -base64 32
to create a NEXTAUTH_SECRET env var
DATABASE_URL="mysql://root:password@localhost:3306/gym_tracker" NEXTAUTH_SECRET="place_here" NEXTAUTH_URL="http://localhost:3000" NODE_ENV="development"
- Use this command:
-
Run
$ npm install
at root of project to install the dependencies- This will kick off the postinstall script, which will run
$ npx prisma migrate dev
to create the database tables and populate the database with seed data
- This will kick off the postinstall script, which will run
-
Finally, run
$ npm run dev
to start the server
warn Fast Refresh had to perform a full reload. Read more: https://nextjs.org/docs/messages/fast-refresh-reload
- This is a known issue with Next.js and Fast Refresh. It's not a problem with the app, but rather a problem with Next.js. See here for more info.
Distributed under the MIT License. See LICENSE
for more information.
Jesse De Lira - [email protected]