Skip to content

Connect with kindness: Post your help requests and lend a hand to those in need.

Notifications You must be signed in to change notification settings

dkostmii/best-hackathon-test

Repository files navigation

best-hackathon-test

This portal facilitates the process of providing assistance to people in need, making it easier to connect those who provide help.

Connect with kindness: Post your help requests and lend a hand to those in need.

Home page of the website

Documentation

All the documentation is available on the http://localhost:8000/docs

Development Rules

Run flake8 before pushing

flake8

Installing using GitHub locally

Note For full functionality, you need to provide all variables in .env

See example in .env_example

  1. Clone the repository:

    git clone https://github.com/dkostmii/best-hackathon-test
  2. Change to the project's directory:

    cd best-hackathon-test
  3. Once you're in the desired directory, run the following command to create a virtual environment:

    python -m venv venv
  4. Activate the virtual environment:

    On macOS and Linux:

    source venv/bin/activate

    On Windows:

    venv\Scripts\activate
  5. Install the dependencies localy

    pip install -r requirements.txt
  6. Create a .env file in the root of the project and add the variables, same as in .env_example file.

  7. Run the app

    alembic upgrade head &&
    python3 -m uvicorn app.main:base_app --host 0.0.0.0 --port 8000 --reload

Docker

Prerequesites Docker should be installed.

  1. To build and run the app

    ./utils/up_server.sh build
  2. To run the app:

    ./utils/up_server.sh

Database

  1. Models already are accessible in alembic/env.py, thanks to from database import Base statement.

  2. Create a migration:

    ./utils/create_migration.sh migration_message

    Migration will up automatically after running the app.

    To downgrade the migration, run:

    ./utils/downgrade_migration.sh

About

Connect with kindness: Post your help requests and lend a hand to those in need.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published