init
This commit is contained in:
80
{{cookiecutter.project_slug}}/README.md
Normal file
80
{{cookiecutter.project_slug}}/README.md
Normal file
@@ -0,0 +1,80 @@
|
||||
# {{cookiecutter.project_name}}
|
||||
|
||||
{{cookiecutter.project_short_description}}
|
||||
|
||||
## Development
|
||||
|
||||
The only dependencies for this project should be docker and docker-compose.
|
||||
|
||||
### Quick Start
|
||||
|
||||
Starting the project with hot-reloading enabled
|
||||
(the first time it will take a while):
|
||||
|
||||
```bash
|
||||
docker-compose up -d
|
||||
```
|
||||
|
||||
To run the alembic migrations (for the users table):
|
||||
|
||||
```bash
|
||||
docker-compose run --rm backend alembic upgrade head
|
||||
```
|
||||
|
||||
### Rebuilding containers:
|
||||
|
||||
```
|
||||
docker-compose build
|
||||
```
|
||||
|
||||
### Restarting containers:
|
||||
|
||||
```
|
||||
docker-compose restart
|
||||
```
|
||||
|
||||
### Bringing containers down:
|
||||
|
||||
```
|
||||
docker-compose down
|
||||
```
|
||||
|
||||
## Logging
|
||||
|
||||
```
|
||||
docker-compose logs
|
||||
```
|
||||
|
||||
Or for a specific service:
|
||||
|
||||
```
|
||||
docker-compose logs -f name_of_service # frontend|backend|db
|
||||
```
|
||||
|
||||
## Project Layout
|
||||
|
||||
```
|
||||
backend
|
||||
└── app
|
||||
├── alembic
|
||||
│ └── versions # where migrations are located
|
||||
├── api
|
||||
│ └── api_v1
|
||||
│ └── endpoints
|
||||
├── core # config
|
||||
├── db # db models
|
||||
├── tests # pytest
|
||||
└── main.py # entrypoint to backend
|
||||
|
||||
frontend
|
||||
└── public
|
||||
└── src
|
||||
├── components
|
||||
│ └── Home.tsx
|
||||
├── config
|
||||
│ └── index.tsx # constants
|
||||
├── __tests__
|
||||
│ └── test_home.tsx
|
||||
├── index.tsx # entrypoint
|
||||
└── App.tsx # handles routing
|
||||
```
|
||||
Reference in New Issue
Block a user