- PyCharm - Create Project. - choose location (for example: D:\DEVELOPMENT\Python\workspace\GIThubPythonProject).
- Run (git bash?) and go to created directory (for example: cd D:\DEVELOPMENT\Python\workspace\GIThubPythonProject).
- Enter copy command (for example: git clone git@github.com:mateuszkawa/pythonhotelproject.git).
- Change focus to PyCharm, View -> Tool Windows -> Project (Alt + 1). Now everything should be fine.
Just run webapp.py. After this we just have to launch localhost on port 8090/hotel to see 1st sample page.
First of all we should get the same python version (as I understood some of us will use Windows). That's why we should all have python 3.5.2. Download from: https://www.python.org/
Let's use PyCharm Community Edition: https://www.jetbrains.com/pycharm/download/
In order to start We need several additional python libraries:
- Tornado - simply start use pip:
- Start a cmd as an Administrator.
- 'pip install tornado'
- Mako - like in Tornado:
- Start a cmd as an Administrator.
- 'pip install Mako'
- Database Connector:
- Start a cmd as an Administrator.
- 'pip install psycopg2'
- ORM - SQLAlchemy:
- Start a cmd as an Administrator.
- 'pip install sqlalchemy'
- Material kit page: http://demos.creative-tim.com/material-kit/index.html
- PostgreSQL database is set to base configuration:
- address: 127.0.0.1
- port: 5432
- login: postgres
- password: postgres
- To setup schema simply run setup.py from dao module.