WorkoutTracker is an IOS group project completed as part of IOS development lecture at HSLU 3rd semester.
The backend component uses node.js with a mysql database connection.
-
To install the necessary packages, run
npm install
in the Backend directory.
-
Run the sql create script in Backend/create_scripts/schema.sql to create the schema necessary for running the backend.
-
Change the following values in Backend/Models/DbContext.ts to fit your db installation:
9: readonly DB_HOST: string = "localhost"; 10: readonly DB_USERNAME: string = "<USERNAME>"; //change to your sql user 11: readonly DB_PASSWORD: string = "<PASSWORD>"; //change to your sql user password 12: readonly DB_SCHEMA_NAME: string = "WorkoutTracker";
For production mode, run
npm start
For dev mode, where server restarts on change, run
npm run dev
Then deploy app or run simulator in XCode and you're good to go.
- Samuel Nussbaumer
- Lenny Budliger