Giter Site home page Giter Site logo

titanic_disaster_project's Introduction

Titanic Disaster Visualization

This project aims to visualize data from the Titanic disaster using FastAPI for the backend and NextJS for the frontend.

Tech Stack:

  • Backend:

    • Python 3.12
    • FastAPI
  • Frontend:

    • NextJS 16.8+
  • Database:

    • SQLite (default for FastAPI)
  • Containerization:

    • Docker and docker-compose

Getting Started:

  1. Clone this repository:

git clone https://github.com/Yalcael/titanic_disaster_project.git

  1. Navigate to the project directory:

cd titanic_disaster_project

  1. You should download the train.csv there:

https://www.kaggle.com/c/titanic/data?select=train.csv // You should put it in the route of the project.

  1. Build and run the project using Docker Compose:

docker-compose up --build

  1. Access the frontend at http://localhost:3000 and the backend API at http://localhost:8000.

Functionality:

  • Backend:

    • I made a script that fill an SQLite database, I fill it through the train.csv file.
    • I made the backend with a structure of models(Database SQL Models), controllers(The logic) and routes(What will permit the front to call the API).
    • I made some unit-test with Pytest.
    • Used of linter Black and Ruff.
    • I made a Dockerfile.
  • Frontend:

    • Displays a table with information about the passengers of the Titanic with TanStack library.
    • Includes a graph with chart.js to represent one of the fields of the dataset.
    • Allows filtering of the displayed data table.
    • I made a Dockerfile.

Dataset:

The Titanic dataset used in this project can be found on Kaggle here: https://www.kaggle.com/c/titanic/data?select=train.csv. I use the train.csv file.

titanic_disaster_project's People

Contributors

yalcael avatar

Stargazers

Stephane PIZEUIL avatar

Watchers

 avatar

Forkers

stouph1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.