Fix(Content): Improved format of README.
This commit is contained in:
18
README.md
18
README.md
@@ -3,6 +3,7 @@ Demo subproject of partsERP Enterprise Resource Planning system featuring the co
|
|||||||
This web app uses Python with Flask for the server and MySQL for the database.
|
This web app uses Python with Flask for the server and MySQL for the database.
|
||||||
|
|
||||||
# Build And Run
|
# Build And Run
|
||||||
|
NOTE: ALL INSTRUCTIONS ARE FOR LINUX.
|
||||||
## 0. Prerequisites
|
## 0. Prerequisites
|
||||||
- Python 3.10
|
- Python 3.10
|
||||||
- npm
|
- npm
|
||||||
@@ -46,13 +47,10 @@ NOTE: IF CONTACT US PAGE FORM FUNCTIONALITY IS REQUIRED, COMPLETE THIS STEP.
|
|||||||
- pip3 install -r requirements.txt
|
- pip3 install -r requirements.txt
|
||||||
|
|
||||||
## 10. Set required environment variables
|
## 10. Set required environment variables
|
||||||
10.1. Windows command
|
10.1. Terminal command
|
||||||
- SET variable_name=variable_value
|
|
||||||
|
|
||||||
10.2. Linux command
|
|
||||||
- export variable_name=variable_value
|
- export variable_name=variable_value
|
||||||
|
|
||||||
10.3. Required variables
|
10.2. Required variables
|
||||||
| Name | Purpose | Example Value |
|
| Name | Purpose | Example Value |
|
||||||
| -------- | -------- | -------- |
|
| -------- | -------- | -------- |
|
||||||
| KEY_SECRET_FLASK | Private key for server encryption. | password123 |
|
| KEY_SECRET_FLASK | Private key for server encryption. | password123 |
|
||||||
@@ -62,7 +60,7 @@ NOTE: IF CONTACT US PAGE FORM FUNCTIONALITY IS REQUIRED, COMPLETE THIS STEP.
|
|||||||
| SQLALCHEMY_DATABASE_URI | Database connection string for SQLAlchemy. | mysql://db_user_name:db_password@127.0.0.1:3306/db_name |
|
| SQLALCHEMY_DATABASE_URI | Database connection string for SQLAlchemy. | mysql://db_user_name:db_password@127.0.0.1:3306/db_name |
|
||||||
| URL_HOST | Domain (and port as necessary) that the project is hosted on. | https://127.0.0.1:5000/ |
|
| URL_HOST | Domain (and port as necessary) that the project is hosted on. | https://127.0.0.1:5000/ |
|
||||||
|
|
||||||
10.4. Optional variables
|
10.3. Optional variables
|
||||||
| Name | Purpose | Example Value |
|
| Name | Purpose | Example Value |
|
||||||
| -------- | -------- | -------- |
|
| -------- | -------- | -------- |
|
||||||
| MAIL_DEFAULT_SENDER | Bot email address. Required for sending internal emails following form completion on Contact Us page. | bot@partsltd.co.uk |
|
| MAIL_DEFAULT_SENDER | Bot email address. Required for sending internal emails following form completion on Contact Us page. | bot@partsltd.co.uk |
|
||||||
@@ -72,7 +70,7 @@ NOTE: IF CONTACT US PAGE FORM FUNCTIONALITY IS REQUIRED, COMPLETE THIS STEP.
|
|||||||
| RECAPTCHA_PRIVATE_KEY | Private key for Google ReCAPTCHA. Required for bot-prevention mesaures on Contact Us page form. | erDasdku8asdncuSAAS8... |
|
| RECAPTCHA_PRIVATE_KEY | Private key for Google ReCAPTCHA. Required for bot-prevention mesaures on Contact Us page form. | erDasdku8asdncuSAAS8... |
|
||||||
|
|
||||||
## 11. Host project
|
## 11. Host project
|
||||||
NOTE: DO EITHER 11.1 OR 11.2.
|
NOTE: DO EITHER 11.1 OR 11.2.
|
||||||
11.1. Host for local machine
|
11.1. Host for local machine
|
||||||
- python3 -m flask run
|
- python3 -m flask run
|
||||||
|
|
||||||
@@ -84,23 +82,27 @@ NOTE: DO EITHER 11.1 OR 11.2.
|
|||||||
## Files dedicated to each page
|
## Files dedicated to each page
|
||||||
CSS:
|
CSS:
|
||||||
- page
|
- page
|
||||||
|
|
||||||
HTML:
|
HTML:
|
||||||
- page
|
- page
|
||||||
- row
|
- row
|
||||||
|
|
||||||
JavaScript:
|
JavaScript:
|
||||||
- page
|
- page
|
||||||
- api
|
- api
|
||||||
- router
|
- router
|
||||||
- base - navigation buttons
|
- base - navigation buttons
|
||||||
|
|
||||||
MySQL:
|
MySQL:
|
||||||
- get
|
- get
|
||||||
- save
|
- save
|
||||||
- table
|
- table
|
||||||
- staging table
|
- staging table
|
||||||
- audit table
|
- audit table
|
||||||
|
|
||||||
Python:
|
Python:
|
||||||
- business object
|
- business object
|
||||||
- controller
|
- controller
|
||||||
- datastore
|
- datastore
|
||||||
- form
|
- form
|
||||||
- model
|
- model
|
||||||
|
|||||||
Reference in New Issue
Block a user