Code Monkey home page Code Monkey logo

fitcheck's Introduction

FitCheck

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.

Roadmap

  • 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

Setup

Setting up the database and the backend

Database

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

API DB migration (if it didn't migrate automatically)

# Get in the api directory
cd api

# Run migrations
dotnet ef database update --context DatabaseContext

# or

Update-Database -Context DatabaseContext

Database structure

FitCheckDB

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.

Setting up the application

# 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

fitcheck's People

Contributors

memergamer avatar actulus avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.