Skip to content

GrzegorzWziatek/spa_projekt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Carpooling app README

This app is an SPA app created by Grzegorz Wziątek & Artur Fujak

first install

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

develop

Run grunt for prod building and grunt serve for developing

php virtualhost for angular app

<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>

backed api

creatend in python with flask framework go to python-server and run pip install -r requirements.txt

then run server: python server.py

backend api methods:

All requests shoud point to http://carpooling.dev:5000 with actions

/user/login

params:

  • email
  • password

login user

/user/register

params:

  • email
  • password
  • login
  • car, plates, desc

registers and login new user

/user/get/string:id

params:

  • string:id - id user to get

retrieve user data

/routes

retrieves list of available routes

/routes/string:id

retrieves route data

params:

  • ud string:id - id route to get
/routes/join

signs user for route

params:

  • route_id

######/routes/leave unsigns user from route

params:

  • route_id
/blog

retrieves list of available blog posts

/blog/post/string:id

retrives blog post details

params:

  • string:id id of post blog to get
/blog/save

saves blog post, requires logged user

params:

  • title
  • text

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published