Web App Extension with Ajax and REST

Verified

Added on  2019/09/18

|2
|448
|466
Project
AI Summary
This project involves extending a web application using PHP CodeIgniter, focusing on implementing user accounts, login functionality, and voting features using Ajax, jQuery, JSON, and REST APIs. The provided instructions detail how to set up the application and database. The core task is to enhance the application with interactive elements, such as logging in and voting, by sending data to the server via REST APIs and updating the page dynamically using Ajax. The project requires a solid understanding of client-side and server-side web development technologies.
tabler-icon-diamond-filled.svg

Contribute Materials

Your contribution can guide someone’s learning journey. Share your documents today.
Document Page
It’s a php CodeIgniter and the first part completed. I only need
to get help on the ajax, jquery, json and REST api to work in
this assignment. All the information and steps are written
Below.
To install the code follow these instructions.
1. Download a zip file and extract if needed.
2. UNZIP the file.
3. Edit the config/database.php file to match localhost if needed
connection details.
4. Edit the config/config.php file to set the base_url value.
5. Use an FTP program to copy it into a directory in your directory on
the server
6. Set up your database tables on the database server. Copy the
contents of create.sql. Then open PHPMyAdmin database account.
Click on the 'SQL' tab and paste the SQL code into the SQL editor.
Run the code to set up the tables.
7. Now check that the application runs by typing a URL or localhost.
8. If you have any questions or problem, then contact me by email at
proxero7@gmail.com
tabler-icon-diamond-filled.svg

Secure Best Marks with AI Grader

Need help grading? Try our AI Grader for instant feedback on your assignments.
Document Page
Coursework Description
Introduction
For this coursework, you will extend the web application included in the file attached.
For this coursework, you need to extend the web application to include the following features:
1. User accounts – users should be able to register to create an account, consisting of a
username and password, and should be able to login. They should also be able to see a
profile page, which shows their posts and comments, and a user score, based on the
upvoting/downvoting of their posts and comments.
2. Posting, commenting and voting is only be allowed for logged-in users. If a user has not
logged in, they should not be able to post, comment or vote. However, they can read posts.
Point 1, 2 should use the following technologies:
1. Ajax/jQuery
2. REST/API
3. JSON
These technologies listed above should be used in the implementation of the following features:
1. Logging in
2. Voting
For example, when the user votes (upvote or downvote), the client-side page should use Ajax to send
the vote to a REST API on the server and get back the new vote result. Similarly, the user should be
able to login via a form in the home page that uses Ajax and a REST API to update the page with the
result of logging-in (displaying the user’s username and insert a link to their profile page).
1. Use of Backbone.js in the implementation of the Logging-in and Voting features
chevron_up_icon
1 out of 2
circle_padding
hide_on_mobile
zoom_out_icon
logo.png

Your All-in-One AI-Powered Toolkit for Academic Success.

Available 24*7 on WhatsApp / Email

[object Object]