Unfinished ReadMe for Windows since I haven't set it up on a Windows machine. I try to get this done asap.
This repo contains all files needed for the test set-up of the python webserver, which is needed for the interships.
- Since you have to use python3.5 or higher, you have to use python3 and not python in the command line.
- If you haven't installed git yet, please install it with
sudo apt-get install git
- Please do not install the test server on the desktop, create a folder for example in your user folder.
- In order to use git, please install the git comamnd line from https://git-scm.com/downloads
- Python 3.5 or higher
- Linux:
sudo apt-get install python3
- Windows: Following soon!
- Linux:
- cherrpy (for webserver programming)
- Linux:
sudo apt-get install python3-pip && pip3 install CherryPy
- Windows: Following soon!
- Linux:
- Browser of your choice
- Recommended by the professor is "FireFox" with the Addon "Web Developer Tool".
- All other modern browsers should be working fine as well. Please dont use Edge or Internet Explorer
- IDE (Development Environment)
- WindIde Personal
- It is available free of charge at http://www.wingide.com/downloads/wingide-personal. Please use at least Version 6.
- PhPStorm
- It's part of the education packet of JetBrains, which you get free as a student of our University.
- A python plugin is also avaible.
- Visual Studio
- Visual Studio Code is free useable with a mircosoft account.
- Please use the extension "Python".
- WindIde Personal
- Editor (optinal, only a short overview)
- Linux / MacOS: Sublime, Atom
- Windows: notepad++, Sublime Text, Atom
- Open your terminal.
- Linux: The standard terminal is sufficient.
- Windows: Please open
git bash
.
- Head to the destination, where the test server should be installed.
- Run
git clone git@github.com:firelort/HSNR-3-WEB-TestServer.git
. - Your termianl should download the files and a new folder called HSNR-3-WEB-TestServer should be thier.
- Go to the HSNR-3-WEB-TestServer folder.
- Run
git checkout master
. - All done.
- Open your terminal.
- Linux: The standard terminal is sufficient.
- Windows: Please open
git bash
.
- Head to your folder, where the content and the app folder are located.
- Run the testserver.py with
python3 testserver.py
in the terminal - Open the brwoser of your choice.
- Head to 127.0.0.1:8080
- There you should see the following:
Stellen Sie eine Anfrage an den Testserver: Anfrage
- If you clicked on
Anfrage
, a new page should open where you can see the installed cherrypy version. - If everything has been successful so far, you can view the requests from your browser. The requests will be displayed in the terminal.
- Shut down the web server. Press
CRTL + C
in your termainl. The webserver should be off and you can use the terminal as usual. - Hurray all done!
Please see the License.md.