- Clone the app by
git clone https://github.com/cikay/event_management
- Navigate to the app folder by
cd event_management
In order to run the app, environment variables need to be set up
Create a file called docker.env
and define the following variables
POSTGRES_USER=your_username # Set your own
POSTGRES_PASSWORD=your_password # Set your own
POSTGRES_DB=your_database # Needs to be created
POSTGRES_SERVER=postgres_db # No need to change, the same in the docker-compose.yml
POSTGRES_PORT=5432 # No need to change
After that you can run the app in container by docker-compose up
- Create a file called
local.env
and define the following variables
POSTGRES_USER=your_username # Set your own
POSTGRES_PASSWORD=your_password # Set your own
POSTGRES_DB=your_database # Needs to be created
POSTGRES_SERVER=localhost # No need to change
POSTGRES_PORT=5432 # No need to change
- Create virtual environment by
python3.8 -m venv venv
- Activate virtual environment. The command depends on the OS you are using
- Install dependencies by
pipenv install
- Run the app by
uvicorn main:app --port 7000
If you are running the app either in container or locally go to /docs
endpoint you will see all endpoint documented
After creating user you need to authorize to use the rest of endpoints
Hit the authorize button and pass your credentials you will see it is logged in the close the dialog and use the rest endpoint