PelumiTayo / comp333-mobile

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool


SonicScore
SonicScore - mobile

A mobile app designed for song rating and evaluation.

Gitter

Key FeaturesHow To UseDownloadCreditsLicense

Key Features

  • This project explores RESTful APIs and Model-View-Controller (MVC) backend structures.
  • Implementation of JWT token for user authentication
  • User authentication
    • Log in to view, update, delete, or add to your song ratings!

How To Use

To clone and run this application locally, you'll need Git and Node.js (which comes with npm) installed on your computer. From your command line:

# Clone this repository
$ git clone https://github.com/PelumiTayo/comp333-mobile.git

# Go into the repository
$ cd comp333-mobile

# For the frontend, go to directory mvc-frontend and install dependencies
$ npm install

# Go to src/pages/services/apiClient.jsx file
$ change this.remoteHostUrl to your wifis ip address

# Run the app
$ npm start

$ run according to whatever device you have. iOS or Android

# For the backend, go to directory mobile-backend
Install composer @ https://getcomposer.org/

- Make sure you have xampp installed, instructions [here](https://www.apachefriends.org/download.html).
- In xampp, run your mySQL database and Apache server.

- move to the directory that has your composer.json file
$ run composer install

- Move your backend folders into the htdocs folder, which is provided by xampp.

- Congratulations! Your backend is up and running on localhost! :)

Core functionality:

  • Model: A database wrapper class that handles sql queries
    • UserModel, RatingModel, CommentModel inherits the Model Class
  • Controller: Handles user requests and passes them to the Model Class for database operations.
    • UserController, RatingController, CommentController inherits the BaseController class.
  • Route: handles requests to 'user-friendly' urls to .php files located in /routes

For detailed documentation, refer to Backend Documentation

Download App

Here

Credits

This software uses the following open source packages:

License

MIT


GitHub @PelumiTayo  ·  GitHub @JohnWhangbo  · 

About

License:MIT License


Languages

Language:JavaScript 61.1%Language:PHP 38.9%