This app is an SPA app created by Grzegorz Wziątek & Artur Fujak
npm install -g grunt-cli bower yo generator-karma generator-angular
Install ruby: http://rubyinstaller.org/downloads/
Install compass: gem install compass
Then go to angular folder then type in console npm install
Run grunt
for prod building and grunt serve
for developing
<VirtualHost *:80>
SetEnv APPLICATION_ENV "development"
ServerName carpooling.dev
DocumentRoot "/Users/grzegorz/OneDrive/Uczelnie/UEK/SPA/spa_projekt/angular/dist"
<Directory "/Users/grzegorz/OneDrive/Uczelnie/UEK/SPA/spa_projekt/angular/dist">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
creatend in python with flask framework
go to python-server and run
pip install -r requirements.txt
then run server:
python server.py
All requests shoud point to http://carpooling.dev:5000 with actions
params:
- password
login user
params:
- password
- login
- car, plates, desc
registers and login new user
params:
- string:id - id user to get
retrieve user data
retrieves list of available routes
retrieves route data
params:
- ud string:id - id route to get
signs user for route
params:
- route_id
######/routes/leave unsigns user from route
params:
- route_id
retrieves list of available blog posts
retrives blog post details
params:
- string:id id of post blog to get
saves blog post, requires logged user
params:
- title
- text