Create a CRUD (Create, Read, Update and Delete) API application using Alpine.js, Axios, Node, and Express to perform various operations on car data. You will choose one function from the provided list and implement the functionality. The application should also demonstrate the use of HTTP methods.
You can fetch the car data from the following API URL.
var car = {
"color": "orange",
"make": "Ford",
"model": "Fiesta",
"reg_number": "CL 77790"
}
- Paarl ('CJ')
- Bellville ('CY')
- Stellenbosch ('CL')
- Malmesbury ('CK')
- Cape Town ('CA')
- Kuilsriver ('CF')
-
Most Popular Make (
mostPopularCar
)- Determine the most popular car make.
-
Nissan Count from Malmesbury (
nissansFromCK
)- Count how many Nissans are from Malmesbury.
-
Town with Most Blue Cars (
mostBlueCars
)- Identify the town with the most blue cars.
-
Town with Fewest Orange Cars (
fewestOrangeCars
)- Determine the town with the fewest orange cars.
-
Most Popular Car Model (
mostPopularModel
)- Find the most popular car model overall.
-
Most Popular Car Model in Stellenbosch (
mostPopularCL
)- Identify the most popular car model in Stellenbosch.
-
Least Popular Car Model in Kuilsriver (
leastPopularCF
)- Determine the least popular car model in Kuilsriver.
-
Cars for a Given Town (
carsForTown('townname')
)- List all cars for a specified town.
-
Cars for a Specific Color in a Town (
numberOfCars('blue', 'townname')
)- List all cars of a specific color in a specified town.
-
Cars for a Specific Color & Model in a Town (
numberOfCarsPerModel('blue', 'model', 'townname')
)- List cars of a specific color and model in a specified town.
-
Most Popular Color Car for a Town (
mostPopularColor('townname')
)- Determine the most popular color car in a given town.
- Functionality: Correct implementation of the chosen function.
- API Design: Proper use of HTTP methods and clear API endpoints.
- Frontend Integration: Effective use of Alpine.js and Axios to interact with the API.
- Code Quality: Clean, readable, and well-documented code.
- User Experience: Simple and intuitive user interface.
- Kanban: Please add some basic planning on your Kanban board.
- Code: Submit the complete codebase for the backend and frontend to GitHub.
- Documentation: Include a README file with setup instructions, API endpoint documentation, and a brief explanation of the chosen function. Make sure that everything is deployed, and working correctly as expected.
- Demo: Details regarding the demo will be communicated separately.
Please write Mocha tests for the function you implement. Ensure that your tests cover all possible scenarios and edge cases.
You can add a GitHub badge to display the build status of your tests. Here is an example of how to add a badge to your README:
[![Build Status](https://img.shields.io/github/workflow/status/your-username/your-repo/CI)](https://github.com/your-username/your-repo/actions)
Replace your-username and your-repo with your GitHub username and repository name respectively.
you guys are killing us