Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/aaronmcleancs/repbook-demoserver

Full-Stack iOS Fitness Assistant made in Objective-C and Swift deployed with a Demo Node.js SQL Backend.
https://github.com/aaronmcleancs/repbook-demoserver

authentication database full-stack nodejs postgresql rest-api swift

Last synced: 9 days ago
JSON representation

Full-Stack iOS Fitness Assistant made in Objective-C and Swift deployed with a Demo Node.js SQL Backend.

Awesome Lists containing this project

README

        

Full Stack iOS Fitness Tracking Application (Objective-C, Node.js, Express, PostresSQL)

Good template for basic user auth and multiview











===============================================

Installation and Setup
-----------------------
git clone https://github.com/AaronM26/RepBook.git
cd RepBook

Backend Setup
cd /backend
npm install
# Replace OpenAI API Key in configuration
node repbook.js

Server Setup
- Run Demo Server in PostgreSQL

Frontend Setup
- Open `RepBook.xcodeproj` in Xcode
- Replace Server IP with your Postgres server IP
- Run the project in a simulator (iOS 17.x+)

### RESTful API Endpoints

| Endpoint | Method | Description |
|-----------------------------------|--------|------------------------------|
| `/api/signup` | POST | User Signup |
| `/api/login` | POST | User Login |
| `/api/checkUsername/:username` | GET | Check Username Availability |
| `/api/exercises` | POST | Add Exercises to Workout |
| `/api/updateUserInfo/:memberId` | POST | Update User Information |
| `/api/userDataAndMetrics/:memberId`| GET | Fetch User Data and Metrics |
| `/api/setGymMembership` | POST | Set Gym Membership |
| `/api/workouts/:memberId` | GET | Get Workouts |
| `/api/membersMetrics/:memberId` | GET | Get Member's Metrics |
| `/api/createWorkout/:memberId` | POST | Create Workout |
| `/api/exercises` | GET | Fetch Exercises |