Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename test filesystem #18

Merged
merged 2 commits into from
Apr 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 47 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,27 @@
- 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`

## Project structure
```
├── README.md # this file
├── apprunner.yaml
├── requirements.txt
│  
├── lib
Expand Down Expand Up @@ -61,8 +65,44 @@
│   ├── 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
Expand Down
Loading