Web Development Assignment: JavaScript REST API and Weather App
VerifiedAdded on  2022/08/26
|8
|831
|29
Homework Assignment
AI Summary
This assignment solution showcases the development of web applications using JavaScript and REST APIs. The first part focuses on building a weather application that fetches data from a weather service API (Darksky API) to display the current weather conditions of Calgary. The second part involves creating a user registration form for a fictional BVC Sport Club, utilizing a REST API approach for data transmission. This includes front-end JavaScript code to collect form data and back-end PHP and MySQL code to handle the data storage and retrieval. The solution demonstrates the use of vanilla JavaScript, PHP, and MySQL for a complete web application with API integration. The third part fetches and displays registered user details in a table format using a read method added to the model. The assignment covers various aspects of web development, including API integration, data fetching, form handling, and database interactions using PHP and MySQL. The provided code snippets illustrate the implementation of these features, including error handling, data validation, and response formatting in JSON.
1 out of 8








