PelumiTayo / comp333-MVC

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool


SonicScore

SonicScore



An application that allows you to rate songs.

Gitter

Key Features

  • This project explores RESTful APIs and Model-View-Controller (MVC) backend structures.

  • User authentication

    • Log in to view, update, delete, or add to your song ratings!
  • Mobile Friendly

    • Take SonicScore on the go!

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-MVC.git

# Go into the repository
$ cd comp333-MVC

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

# Go to src/components/services/apiClient.jsx file
$ change this.remoteHostUrl to "http://localhost"

# Run the app
$ npm start

# For the backend, go to directory mvc-backend
- Make sure you have xampp installed, instructions [here](https://www.apachefriends.org/download.html).
- In xampp, run your mySQL database and Apache server.
- 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

Deployed URL

SonicScore

Credits

This software uses the following open source packages:

License

MIT


GitHub @PelumiTayo  ·  GitHub @JohnWhangbo  · 

About

License:MIT License


Languages

Language:JavaScript 68.6%Language:PHP 29.8%Language:HTML 1.2%Language:Dockerfile 0.2%Language:CSS 0.0%