Skip to content

Commit 370d8d3

Browse files
authored
Merge pull request #107 from TehreemAkhtar/feature/update-installation-steps
Refine and update installation steps
2 parents 96be261 + 185c095 commit 370d8d3

File tree

1 file changed

+35
-13
lines changed

1 file changed

+35
-13
lines changed

README.md

Lines changed: 35 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@
4646
<li>
4747
<a href="#getting-started">Getting Started 🚀</a>
4848
<ul>
49-
<li><a href="#installation">Installation 📦</a></li>
49+
<li><a href="#1-installing-the-gnews-package">Installing the GNews package 📦</a></li>
5050
</ul>
5151
<ul>
52-
<li><a href="#setup-with-docker">Setup with Docker 🐳</a></li>
52+
<li><a href="#2-setting-up-gnews-for-local-development">Setting Up GNews for Local Development 🧑‍💻</a></li>
5353
</ul>
5454
</li>
5555
<li>
@@ -108,28 +108,50 @@ may find a `Language & region` section where you can find all of the supported c
108108

109109
## Getting Started
110110

111-
This is an example of how you may give instructions on setting up your project locally. To get a local copy up and
112-
running follow these simple example steps.
111+
This section provides instructions for two different use cases:
113112

114-
### Installation
113+
1. **Installing the GNews package** for immediate use.
114+
2. **Setting up the GNews project** for local development.
115+
116+
### 1. Installing the GNews package
117+
118+
To install the package and start using it in your own projects, follow these steps:
115119

116120
``` shell
117121
pip install gnews
118122
```
123+
### 2. Setting Up GNews for Local Development
119124

120-
### Setup with Docker
125+
If you want to make modifications locally, follow these steps to set up the development environment.
121126

122-
#### Developing with docker
127+
#### Option 1: Setup with Docker
123128

124129
1. Install [docker and docker-compose](https://docs.docker.com/get-docker/).
125-
2. Set-up your .env environment placing the mongo db credentials.
126-
3. Run `docker-compose up --build`
130+
2. Configure the `.env` file by placing your MongoDB credentials.
131+
3. Run the following command to build and start the Docker containers:
132+
133+
``` shell
134+
docker-compose up --build
135+
```
127136

128-
#### Install using clone
137+
#### Option 2: Install Using Git Clone
129138

130-
1. Clone this repository `https://github.com/ranahaani/GNews.git`
131-
2. Start your virtual environment `virtualenv gnews`
132-
3. Install the requirements with `pip install -r requirements.txt`
139+
1. Clone this repository:
140+
``` shell
141+
git clone https://github.com/ranahaani/GNews.git
142+
```
143+
144+
2. Set up a virtual environment:
145+
```shell
146+
virtualenv venv
147+
source venv/bin/activate # MacOS/Linux
148+
.\venv\Scripts\activate # Windows
149+
```
150+
151+
3. Install the required dependencies:
152+
```shell
153+
pip install -r requirements.txt
154+
```
133155

134156
<!-- USAGE EXAMPLES -->
135157

0 commit comments

Comments
 (0)