This repository has been archived by the owner on Apr 4, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
45 lines (34 loc) · 1.49 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/TDP003
FLASKR_SETTINGS
Contains the configuration. Is not implemented yet so the configuration is in the flaskProject.py-file in /web
LOG
Contains all the log files that are created by web/data.py
README
This file.
/web
Where all the files for this project are.
/images
Folder for the images that are on the website
/style
CSS-folder
/templates
All .html-files
/templates/tools
The tools for the admin-page
INSTALLATION:
Requisitions:
A working Python setup. To install python, please refer to Python's download site at http://www.python.org/getit/
A working Python Flask setup. Please refer to Flask's site at http://flask.pocoo.org/ and look for the title "And Easy to Setup". Note that you will need a working Python setup for this!
A web browser of your choice. Google Chrome 14 and 15 was used when developing this site.
Instructions (for Linux):
Unzip TDP003.zip in a folder of your choice
Go to that folder in your terminal and into the web-subdirectory
Your path should be: /home/of/your/choice/web/
Type: "python2.7 flaskProject.py" (without the double-quotes)
You should now see this in your terminal if you haven't changed your Flask config:
* Running on http://127.0.0.1:5000/
* Restarting with reloader
The website is now running
Head over to http://127.0.0.1:5000 in your web browser and you should see the portfolio
VALIDATION:
If you want to make sure this project is done as the API instructs you can run "python2.7 web/data_test.py"