make install
make dev-backend
# http://127.0.0.1:8000
make dev-frontend
# http://127.0.0.1:5173
Our researchers have just provided us with a dataset that consists of demographic information. The dataset can be found at the location dataset/canton.csv
.
As the researchers are not proficient in IT development, they have tasked you with creating a web application to display a single chart. Here are the initial requirements :
- Users should be able to select a canton.
- Chart should show proportion of women and men in the selected canton (with a doughnut chart for instance).
- The backend should read the dataset and publish the data through a REST API using FastAPI
- Backend API documentation: http://127.0.0.1:8000/docs
- Some examples of API definition are in
backend/homework_fullstack/main.py
- The frontend should fetch the data from the API and draw a chart
- Use a chart library (ECharts is recommended)
- A component has already been bootstraped in
frontend/src/components/GenderChart.vue
- Bonus: Dockerize the application to be able to run everything using
docker-compose up
- Fork the repository
- Do your commits
- Create a pull request back to the original repository