Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
cankocakulak authored Apr 30, 2024
1 parent 535dc3e commit ba59908
Showing 1 changed file with 0 additions and 53 deletions.
53 changes: 0 additions & 53 deletions backend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,56 +89,3 @@ python manage.py runserver

If you see the url on the terminal without any error, it means the server works properly. You can visit `http://127.0.0.1:8000` to check the app!


## How to Run with Docker

### Prerequisites

- Docker

### Steps

- 1. Clone the repository

```bash
git clone
```

- 2. Change directory to the project's backend directory

```bash
cd ./bounswe2024group4/backend
```

- 3. Create a `.env` file in the `./backend` directory and add the following environment variables

```bash
cp .env.example .env
```

- 4. Enter the values for the environment variables in the `.env` file:


You can use local credentials for development purposes.

- 4.b If you want to use local credentials, migrate the database

Run your MySQL server.

Then run the following commands to migrate the database

```bash
python manage.py makemigrations
python manage.py migrate
```

- 5. Install Docker and Docker Compose

- [Docker](https://docs.docker.com/get-docker/)
- [Docker Compose](https://docs.docker.com/compose/install/)

- 6. Run the following command to start the backend server

```bash
docker-compose up
```

0 comments on commit ba59908

Please sign in to comment.