https://github.com/r-rijnbeek/flask_postgresql_template
The purpose of this repository is to make a standard FLASK application template to create standard get request able to connect with a postgreSQL database, LOG management and error management with EMAIL (Configurated for GMAIL ). After you get a working environment. You can use it and build new webservices.
https://github.com/r-rijnbeek/flask_postgresql_template
flask-application postgresql python sqlalchemy
Last synced: 12 months ago
JSON representation
The purpose of this repository is to make a standard FLASK application template to create standard get request able to connect with a postgreSQL database, LOG management and error management with EMAIL (Configurated for GMAIL ). After you get a working environment. You can use it and build new webservices.
- Host: GitHub
- URL: https://github.com/r-rijnbeek/flask_postgresql_template
- Owner: R-Rijnbeek
- License: mit
- Created: 2022-02-09T09:52:51.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-02-09T18:36:14.000Z (about 4 years ago)
- Last Synced: 2025-01-15T13:58:31.308Z (about 1 year ago)
- Topics: flask-application, postgresql, python, sqlalchemy
- Language: Python
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# flask_postgresql_template
The purpose of this repository is to make a standard FLASK aplication template to create standard get request able to connect with a postgreSQL database, LOG management and error managenment with EMAIL (Configurated for GMAIL ).
Afther you get a working environment. You can use it and build new webservices.
## prerequisites
Has anaconda installed on windows. And configured you system variables ($path) of anaconda on windows:
* C:\ProgramData\Anaconda3
* C:\ProgramData\Anaconda3\Scripts
* C:\ProgramData\Anaconda3\Library\bin
## Instalation protocol
1. Clone the github repository.
```
$ git clone https://github.com/R-Rijnbeek/flask_postgresql_template.git
```
2. Enter the project folder.
```
$ cd flask_postgresql_template
```
3. Build the virtual environment on the repository by running:
```
$ build.bat
```
4. To activate the environmet and run the webservice:
```
$ activate ./env
$ python entrypoint.py
```
or use your interpreter using the right virtual environment.
Afther that, you can test it writing on your webbrowser: http://127.0.0.1:8080/hello_world?NAME=John getting as output:
```
{"DATA":{"message":"Hello World John"},"SUCCES":true}
```
## Notes to know:
1. The dependencies to use all features of this repository are writed on the environmet.yml file
2. Future feature: Make the EMAIL content optional
3. This repository is tested with windows 10 and anaconda version 4.11.0.
4. This is a standard template. You can use it for your purpose to make it easier to build you flask webservice aplication and install or create new features on your local repository.