Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
jakobsn 88667a300a Get hash from signing the user and store in cookie vor 6 Jahren
mysql allow localhost to acces db and update readme vor 6 Jahren
src Get hash from signing the user and store in cookie vor 6 Jahren
.gitignore more database tables and creating of projects. Bug encountered, sleep on it vor 6 Jahren
README.md Get hash from signing the user and store in cookie vor 6 Jahren
app_structure.png Making docs vor 6 Jahren
docker-compose.yml webserver launch before database ready vor 6 Jahren

README.md

Simple python web application

Python webpy application running on uswgi server with nginx using docker connected to another docker-runned mysql database.

Web Server image: https://github.com/tiangolo/uwsgi-nginx-docker webpy framework: http://webpy.org/

Prerequisites:

docker https://www.docker.com/

Build & Run

$ docker-compose up --build

Prune/Recreate

If you need a fresh rebuild in case of startup issues use this command (WARNING this will remove all your docker images)

$ docker system prune -a

$ docker-compose up --build

Deploy locally

Prerequisites:

mysql

python3

src/app/requirements.txt

Run Datatbase:

Launch mysql at default port (3306)

$ systemctl start mysqld

Log in to database

$ sudo mysql -u root

Insert mysql queries

“CREATE database db;”

“USE db;”

“SET PASSWORD FOR ‘root’@‘localhost’ = PASSWORD(‘root’);”

Then populate databse by posting mysql/sql/init.sql into mysql

Edit src/app/models/database.py to point at local server

###Run app

$ cd src/app/

$ python3 src/app/main.py