Skip to content

Commit ad36374

Browse files
committed
Update README.md
1 parent 00573bb commit ad36374

File tree

1 file changed

+61
-26
lines changed

1 file changed

+61
-26
lines changed

README.md

Lines changed: 61 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ More screenshots below.
4343
## Features
4444

4545
* Dynamic web application built with Flask and SQLite
46-
* Modern development tools integration (VS Code, Git)
46+
* Modern development tools integration
4747
* Historical archive of a student-led film series website from the early 2000s
4848
* Recreated film database preserving information about past screenings
4949
* Google Maps integration for historical location reference
@@ -107,56 +107,90 @@ TODO
107107
git clone https://github.com/ggeerraarrdd/film-series.git
108108
```
109109

110-
2. **Navigate into the project directory:**
111-
112-
```bash
113-
cd film-series # For example
114-
```
115-
116-
3. **Create and activate a virtual environment:**
110+
2. **Create and activate a virtual environment:**
117111

118112
```bash
119113
python -m venv venv
120114
source venv/bin/activate # On Windows use `venv\Scripts\activate`
121115
```
122116

123-
4. **Install the dependencies:**
117+
3. **Install the dependencies:**
124118

125119
```bash
126120
pip install -r requirements.txt
127121
```
128122

129-
5. **Create an `.env` file and set the environment variables:**
123+
### Configuration
124+
125+
1. **Create an `.env` file:**
130126

131-
Create a file named `.env` in the `app` directory of the project and add the following variables:
127+
Place the file in the root directory and add the following as default:
132128

133-
```properties
134-
SECRET_KEY=your_secret_key
135-
MAP_API_KEY=your_map_api_key
136-
DATABASE_NAME="lafs.db"
129+
```python
130+
# Database Path
131+
DATABASE_NAME='data/lafs.db'
132+
133+
# Database Connection Pool
134+
POOL_SIZE=15
135+
MAX_OVERFLOW=5
136+
POOL_TIMEOUT=30
137+
POOL_RECYCLE=1800
138+
ECHO=False
139+
140+
# Database Retry Settings
141+
MAX_RETRIES=3
142+
BASE_DELAY=1
143+
MAX_DELAY=10
144+
145+
# Flask Secret Key
146+
SECRET_KEY='your_flask_secret_key'
147+
148+
# Google Maps API Key
149+
MAP_API_KEY='your_map_api_key'
137150
```
138151

139-
Replace `your_secret_key` (see #6 below) and `your_map_api_key` (see # 7 below) with your actual secret key and API key.
152+
2. **Database**
140153

141-
6. **Notes on Flask Secret Keys:**
154+
```python
155+
# Database Path
156+
DATABASE_NAME='data/lafs.db' # Path to SQLite database file
142157
143-
TODO
158+
# Database Connection Pool
159+
POOL_SIZE=15 # Max number of persistent connections
160+
MAX_OVERFLOW=5 # Max number of connections above POOL_SIZE
161+
POOL_TIMEOUT=30 # Seconds to wait for available connection
162+
POOL_RECYCLE=1800 # Seconds before connection is recycled
163+
ECHO=False # Enable SQLAlchemy engine logging
144164
145-
7. **Notes on Google Maps API Keys:**
165+
# Database Retry Settings
166+
MAX_RETRIES=3 # Max retry attempts for failed operations
167+
BASE_DELAY=1 # Initial delay between retries in seconds
168+
MAX_DELAY=10 # Max delay between retries in seconds
169+
```
146170

147-
For the embedded map to work, you need to set up your own API Key. Before you can create one, you will need to create a Google Cloud project, for which you need a Google Cloud account.
171+
3. **Flask Secret Key**
172+
173+
```python
174+
# Flask Secret Key
175+
SECRET_KEY='your_flask_secret_key'
176+
```
177+
178+
4. **Google Maps API Key**
179+
180+
```python
181+
# Google Maps API Key
182+
MAP_API_KEY='your_map_api_key'
183+
```
184+
185+
An API Key is needed for the embedded map to work. Before you can create one, you will need to create a Google Cloud project, for which you need a Google Cloud account.
148186

149187
* [Set up a Google Cloud account](https://cloud.google.com)
150188
* [Set up your Google Cloud project](https://developers.google.com/maps/documentation/javascript/cloud-setup)
151189
* [Using API Keys](https://developers.google.com/maps/documentation/javascript/get-api-key)
152190

153-
### Configuration
154-
155-
* TBD
156-
157191
### Usage
158192

159-
1. **Go into the app directory and run the command:**
193+
1. **Go into the `app` directory and run the command:**
160194

161195
```bash
162196
flask run
@@ -200,7 +234,8 @@ Improvements and new features development are ongoing.
200234
201235
## Screenshots
202236
203-
![Film Series](/docs/images/film-series0_2.png "Landscape Architecture Film Series")_Image created using [Portfoliofy](https://github.com/ggeerraarrdd/portfoliofy)._
237+
![Film Series](/docs/images/film-series0_2.png "Landscape Architecture Film Series")
238+
_(Image created using [Portfoliofy](https://github.com/ggeerraarrdd/portfoliofy).)_
204239
205240
![Film Series](/docs/images/film-series2_2.jpg "Landscape Architecture Film Series")
206241
![Film Series](/docs/images/film-series3_2.jpg "Landscape Architecture Film Series")

0 commit comments

Comments
 (0)