Coder Social home page Coder Social logo

tietokanta-projekti's Introduction

Tietokanta Projekti

Schema

Description

This project is a Python application that interacts with a SQL database to manage recipes.

Prerequisites

  • Docker

Project scope

This project is a Python application that uses Docker to manage a SQL database for recipes. The application's source code is located in the src directory, with the main entry point being main.py. The database interactions are handled by the database.py file in the utils directory.

The Docker configuration for the application is defined in the docker-compose.yml file at the root of the project, and the Dockerfile for the application is Dockerfile. There's also a Docker configuration specifically for the Postgres database in the postgres directory.

The SQL queries used by the application are stored in the queries.sql file. The schema for the database is defined in 00-schema.sql, and the script to populate the database with initial data is in 01-populate.sql.

The project's dependencies are listed in the requirements.txt file. To run the application, Docker is required as per the prerequisites in the README.md.

Running the application

  1. Clone the repository
  2. Navigate to the project directory
  3. Run the following commands
docker compose build
docker compose up -d postgres
docker compose run tietokanta-projekti

Queries

The queries that are used within the application are located in the queries.sql

Schema and populate

The schema of the database is located at ./postgres/init/00-schema.sql and the populate script at ./postgres/init/01-populate.sql

tietokanta-projekti's People

Contributors

salabombou avatar ekilaatune avatar larihama avatar

Watchers

 avatar

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.