Skip to content

Latest commit

 

History

History
44 lines (26 loc) · 1.2 KB

File metadata and controls

44 lines (26 loc) · 1.2 KB

Tempbox / Python

Temporary file storage demo app powered by UserApp, Python (Tornado) and AngularJS.

Launching the demo app

  1. Download and unzip the code
$ wget -qO- -O ua-tmp.zip https://github.com/userapp-io/tempbox-python-angularjs/archive/master.zip && unzip ua-tmp.zip && rm ua-tmp.zip
  1. Update the configuration with your app id
$ cd tempbox-python-angularjs-master/src/
$ vim config.py

Edit the line where it says APP_ID = 'YOUR_APP_ID' with your app id.

$ cd public_www/js/
$ vim app.js

Edit the line where it says user.init({ appId: 'YOUR_APP_ID' }); with your app id.

If you don't know your app id, click here to locate it.

  1. Install library dependencies
$ pip install zipfile
$ pip install tornado
$ pip install userapp --pre
$ pip install userapp.tornado --pre
  1. Run the server
$ chmod +x server.py
$ ./server.py
  1. Visit the address mentioned in the console

If you haven't changed the port it should be running on http://localhost:31415/

License

MIT