A Fitness/Gym check-in application made with React Native (TypeScript + NativeWind), ASP .NET and PostgreSQL. This repository is meant to be a source of inspiration and a starting point for developers looking to create powerful, user-friendly fitness check-in application.
- implemented user functionalities
- login, register, logout
- see profile
- see memberships and its details
- implemented admin screens
- login, register (by default registration creates member user, it needs to be elevated manually to admin), logout
- see and delete users
- search for a user
- see, create and delete membership purchases
- scan memberships to check in
- edit memberships and membership purchases
You can create a PostgreSQL container with the following example line:
docker run --name postgresql-container -e POSTGRES_PASSWORD=root -p 5469:5432 -d postgres
This will create a postgres db with:
- root user: postgres
- root passwd: root
- port: 5469
# Get in the api directory
cd api
# Run migrations
dotnet ef database update --context DatabaseContext
# or
Update-Database -Context DatabaseContext
NOTE: For API to work properly you will need to create a devtunnel, and replace the api baseUrl
in the apiContext.tsx
After setting up everything start the api via VisualStudio.
# Get in the project directory
cd app
# Install npm dependencies
npm install
# Run the project via
npm run start
# or
npm run android #(it was tested on android only)
# or
npm run ios
# if for some reason it fails to connect use
npm run tunnel