Skip to content

glonor/StudentPortal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

StudentPortal

A containerized web application for managing student records. We use Docker Compose to create a seamless environment for the application and ensure data persistence through Docker volumes.

Directory Structure

├───app
│   │   app.py
│   │   Dockerfile
│   │   requirements.txt
│   │
│   └───templates
│           add_student.html
|
└───db
        init.sql

Application Components

  • docker-compose.yml: Configuration file for Docker Compose, defining services and their interconnections. It sets up the environment for the application, including an app service and a database service.

  • init.sql: SQL initialization script responsible for creating the necessary database and table structures, as well as inserting initial data.

  • Dockerfile: Instructions for building a Docker image for the Flask web application. It specifies the base image, exposes ports, copies application files, installs dependencies, and sets the command to run the app.

  • app.py: The main Python script that powers the Flask web application. It handles database connections, data retrieval, and JSON responses.

  • add_student.html: An HTML template for a web page that allows users to input student data.

Running the Application

Build and run the containers in daemon mode using the following command:

docker-compose up -d --build

The database will be stored inside the data folder, ensuring data persistence.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors