Skip to content

Commit

Permalink
update readme to spin up DB using docker
Browse files Browse the repository at this point in the history
  • Loading branch information
pallabez committed Nov 3, 2023
1 parent 9d8245c commit bf4a896
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,17 @@ venv/bin/activate
- Install the project dependencies by running the command
```
pip install -r requirements.txt
```
- Spin up the development server
```
docker compose build
```
```
docker compose up
> This will install all the necessary packages listed in the requirements.txt file.
```
- Setup the env files
```
Create a `.env` file in the root directory, and copy paste the code from the `sample.env` file to it
```

> This will install all the necessary packages listed in the requirements.txt file.
- Install [docker](https://docs.docker.com/get-docker/)
- Spin up the database
```
docker-compose up db
```
- Create a `.env` file in the root folder and copy paste the content from the .env.example.
- Set up the database by running the commands
```
Expand All @@ -43,8 +40,7 @@ python manage.py makemigrations
```
python manage.py migrate
```
> These commands create and apply database migrations based on the models defined in your project.
- Create an admin user by running the command
- Create an admin user by running the command (Optional)
```
python manage.py createsuperuser
```
Expand Down

0 comments on commit bf4a896

Please sign in to comment.