You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Navigate to the URL specified in the terminal output
@@ -121,7 +122,20 @@ flask run
121
122
122
123
### Prerequisites
123
124
124
-
* TBD
125
+
Before you begin, ensure you have met the following requirements:
126
+
127
+
1.**Development Tools**
128
+
129
+
* Python 3.12 (not tested on other versions)
130
+
*[git](https://git-scm.com/) (for cloning the repository)
131
+
132
+
2.**Google Maps API Key**
133
+
134
+
For the embedded maps to work, you need to set up a Google Maps API Key. Before you can create one, you will need to create a Google Cloud project, for which you need a Google Cloud account.
135
+
136
+
*[Set up a Google Cloud account](https://cloud.google.com)
137
+
*[Set up your Google Cloud project](https://developers.google.com/maps/documentation/javascript/cloud-setup)
138
+
*[Create and configure your API Key](https://developers.google.com/maps/documentation/javascript/get-api-key)
125
139
126
140
### Dependencies
127
141
@@ -136,7 +150,7 @@ flask run
136
150
cd lafs
137
151
```
138
152
139
-
2. **Create and activate a Python virtual environment**
*`POOL_SIZE` - max number of persistent connections
201
+
*`MAX_OVERFLOW` - max number of connections above POOL_SIZE
202
+
*`POOL_TIMEOUT` - seconds to waitfor available connection
203
+
*`POOL_RECYCLE` - seconds before connection is recycled
204
+
*`ECHO` - enable SQLAlchemy engine logging
200
205
201
-
3. **Flask Secret Key**
206
+
Custom Retry Mechanism Parameters:
207
+
*`MAX_RETRIES` - max retry attempts for failed operations
208
+
*`BASE_DELAY` - initial delay between retries in seconds
209
+
*`MAX_DELAY` - max delay between retries in seconds
202
210
203
-
```python
204
-
# Flask Secret Key
205
-
SECRET_KEY='your_flask_secret_key'
206
-
```
211
+
3. **Flask Secret Key Options Explained**
207
212
208
-
4. **Google Maps API Key**
213
+
From Flask's [official documentation](https://flask.palletsprojects.com/en/stable/config/): _A secret key that will be used for securely signing the session cookie and can be used for any other security related needs by extensions or your application. It should be a long random bytes or str. For example, copy the output of this to your config:_
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.
216
-
217
-
* [Set up a Google Cloud account](https://cloud.google.com)
218
-
* [Set up your Google Cloud project](https://developers.google.com/maps/documentation/javascript/cloud-setup)
219
-
* [Using API Keys](https://developers.google.com/maps/documentation/javascript/get-api-key)
220
+
The above is used as system default for local development. You can generate a new one using the `secrets` module fro Python standard library or using your preferred method.
220
221
221
222
## Usage
222
223
@@ -228,7 +229,11 @@ flask run
228
229
229
230
2. **Open the film series website**
230
231
231
-
Copy and open the URL displayed after 'Running on'in the terminal.
232
+
Navigate to the URL specified in the terminal output. For example:
233
+
234
+
```bash
235
+
* Running on http://127.0.0.1:5000
236
+
```
232
237
233
238
## Production Setup
234
239
@@ -270,7 +275,7 @@ This project is not accepting contributions at this time. It is intended solely
270
275
271
276
## Screenshots
272
277
273
-

278
+

274
279
_(Image created using [Portfoliofy](https://github.com/ggeerraarrdd/portfoliofy).)_
275
280
276
281

0 commit comments