From 1227afa3d1073383e19c065c2747d1e3e25ef1c2 Mon Sep 17 00:00:00 2001 From: GabrielBarberini Date: Sun, 3 Mar 2024 22:53:51 -0300 Subject: [PATCH 1/2] updates README --- README.md | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index c4774c2..76f6588 100644 --- a/README.md +++ b/README.md @@ -4,16 +4,21 @@ - Performs rocket simulations and returns simulation data - Stores simulation input data in mongo-db -## Docker -- set MONGODB_CONNECTION_STRING: `touch .env && echo MONGODB_CONNECTION_STRING="$ConnectionString" > .env` -- run docker compose: `docker-compose up --build -d` - ## Setup - [Install python3](https://www.python.org/downloads/) 3.11.5 or above - [install mongodb-atlas](https://www.mongodb.com/try/download/community) - Install dependencies `python3 -m pip install -r requirements.txt` ## Starting the server +- Setup MONGODB_CONNECTION_STRING: +``` +$ touch .env && echo MONGODB_CONNECTION_STRING="$ConnectionString" > .env +``` + +### Docker +- run docker compose: `docker-compose up --build -d` + +### Standard - Dev: `python3 -m uvicorn lib:app --reload --port 3000` - Prod: `gunicorn -k uvicorn.workers.UvicornWorker lib:app -b 0.0.0.0:3000` From 44badf08e124ab00efddd66e424e94a7daf75435 Mon Sep 17 00:00:00 2001 From: GabrielBarberini Date: Sun, 31 Mar 2024 15:31:36 -0300 Subject: [PATCH 2/2] renames test folder --- README.md | 41 +++++++++++++++++-- .../Infinity-API.postman_collection.json | 0 2 files changed, 38 insertions(+), 3 deletions(-) rename {test => tests}/Infinity-API.postman_collection.json (100%) diff --git a/README.md b/README.md index 76f6588..1a5c5ad 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,6 @@ $ touch .env && echo MONGODB_CONNECTION_STRING="$ConnectionString" > .env ## Project structure ``` ├── README.md # this file -├── apprunner.yaml ├── requirements.txt │   ├── lib @@ -66,8 +65,44 @@ $ touch .env && echo MONGODB_CONNECTION_STRING="$ConnectionString" > .env │   ├── motor.py │   └── rocket.py │   -└── test - └── infinity-api-postman-collection.json +└── tests + ├── infinity-api-postman-collection.json + │   + ├── integration + │   + └── unit + ├── test_secrets.py + ├── test_api.py + │   + ├── test_controllers + │   ├── test_environment.py + │   ├── test_flight.py + │   ├── test_motor.py + │   └── test_rocket.py + │ + ├── test_routes + │   ├── test_environment.py + │   ├── test_flight.py + │   ├── test_motor.py + │   └── test_rocket.py + │ + ├── test_repositories + │   ├── test_environment.py + │   ├── test_flight.py + │   ├── test_motor.py + │   └── test_rocket.py + │ + ├── test_models + │   ├── test_environment.py + │   ├── test_flight.py + │   ├── test_motor.py + │   └── test_rocket.py + │   + └── test_views +    ├── test_environment.py +    ├── test_flight.py +    ├── test_motor.py +    └── test_rocket.py ``` ## DOCS diff --git a/test/Infinity-API.postman_collection.json b/tests/Infinity-API.postman_collection.json similarity index 100% rename from test/Infinity-API.postman_collection.json rename to tests/Infinity-API.postman_collection.json