Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrmee authored Jun 18, 2023
1 parent 501316d commit aee2fb6
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,12 @@ Make sure you have the following installed on your system:
- Docker: [https://docs.docker.com/get-docker/](https://docs.docker.com/get-docker/)

**Step 1: Clone the Repository**
1. Open your terminal or command prompt.
2. Change the current working directory to the location where you want to clone the repository.
3. Run the following command to clone the repository:

```shell
git clone https://github.com/cyrmee/BookStore
```

**Step 2: Set Up Environment Variables**
1. Copy .env.example to `.env`
1. Copy `.env.example` to `.env`
```shell
cp .env.example .env
```
Expand All @@ -25,7 +21,7 @@ cp .env.example .env

**Step 3: Update Connection String**
1. In the root directory of the cloned repository, navigate to the `Presentation` folder.
2. Open the `appsettings.json` file in a text editor.
2. Open `appsettings.json`.
3. Find the connection string and update the `"host"` value with the container name of the PostgreSQL database. The container name should be the same as specified in the `docker-compose.yml` file.

Here's an example of how the updated connection string might look like:
Expand All @@ -36,13 +32,13 @@ Here's an example of how the updated connection string might look like:
}
```

Make sure to replace "postgres_container_name" with the actual container name of your PostgreSQL database, "your_username" with the appropriate username, and "your_password" with the corresponding password.
Make sure to replace "postgres_container_name" with the actual container name of your PostgreSQL database found in `.env` file, "your_username" with the appropriate username, and "your_password" with the corresponding password.

Save the changes to the `appsettings.json` file after making the necessary modifications.

**Step 4: Build and Run the Docker Containers**
1. Open your terminal or command prompt.
2. Change the current working directory to the root directory of the cloned repository.
2. Change the current working directory to the root directory of the project.
3. Run the following command to build and run the Docker containers:

```shell
Expand Down

0 comments on commit aee2fb6

Please sign in to comment.