Front-end link: https://github.com/rafaellevissa/company-reactjs
First things first, make sure you have python3
, pip3
, and venv
installed.
Activate the virtual environment by running the following command in the root folder of the project:
source env/bin/activate
Next, install the required dependencies:
pip3 install -r requirements.txt
Set a few environment variables:
export FLASK_ENV=development
export FLASK_APP=server.py
We're almost done! Now, run the migrations:
flask db upgrade
After that, run the following code. If everything went right, you are ready to go:
flask run
Alternatively, you can run the project with Docker. Make sure the .env
file is correctly set up, and then build a Docker image using the following command:
docker compose build
Once the image is built, start the container:
docker compose up -d
After the container is up, create the migrations with the following command:
docker compose exec api alembic upgrade head
That's all you need 🎉!
The React app is currently running on an EC2 instance that is configured with Docker Swarm. The Docker images required for the app are stored in DockerHub.
You can access the running application on the following address:
http://54.197.74.184:5000/
To log in to the system, use the following credentials:
Username: [email protected]
Password: 123Change@
You can run the tests with the folowing command:
python3 -m unittest