|
46 | 46 | <li>
|
47 | 47 | <a href="#getting-started">Getting Started 🚀</a>
|
48 | 48 | <ul>
|
49 |
| - <li><a href="#installation">Installation 📦</a></li> |
| 49 | + <li><a href="#1-installing-the-gnews-package">Installing the GNews package 📦</a></li> |
50 | 50 | </ul>
|
51 | 51 | <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> |
53 | 53 | </ul>
|
54 | 54 | </li>
|
55 | 55 | <li>
|
@@ -108,28 +108,50 @@ may find a `Language & region` section where you can find all of the supported c
|
108 | 108 |
|
109 | 109 | ## Getting Started
|
110 | 110 |
|
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: |
113 | 112 |
|
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: |
115 | 119 |
|
116 | 120 | ``` shell
|
117 | 121 | pip install gnews
|
118 | 122 | ```
|
| 123 | +### 2. Setting Up GNews for Local Development |
119 | 124 |
|
120 |
| -### Setup with Docker |
| 125 | +If you want to make modifications locally, follow these steps to set up the development environment. |
121 | 126 |
|
122 |
| -#### Developing with docker |
| 127 | +#### Option 1: Setup with Docker |
123 | 128 |
|
124 | 129 | 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 | +``` |
127 | 136 |
|
128 |
| -#### Install using clone |
| 137 | +#### Option 2: Install Using Git Clone |
129 | 138 |
|
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 | +``` |
133 | 155 |
|
134 | 156 | <!-- USAGE EXAMPLES -->
|
135 | 157 |
|
|
0 commit comments