Skip to content

Latest commit

 

History

History
executable file
·
100 lines (76 loc) · 1.91 KB

README.md

File metadata and controls

executable file
·
100 lines (76 loc) · 1.91 KB

Wyft

Do you like using Lyft, the app that's basically your friend with a car? Wouldn't it be cool to meet people and use their wifi in exchange for a (completely optional) gift? Wyft allows you to search for users within a zip code offering to host you and give you access to their wifi. You might just meet your next best friend.

Team

  • Product Owner: Arianna
  • Scrum Master: Arianna
  • Development Team Members: Rosita, Al, Josh, Roy

Table of Contents

  1. Usage
  2. Requirements
  3. Development
    1. Installing Dependencies
    2. Tasks
  4. Team
  5. Contributing

Usage

Install nodes package npm install

Turn on the server, go to localhost:3000 npm run server-dev

Making endpoint request from client as

  • Guest
  1. POST request (search nearby wifi hosts)
  $.ajax({
  	  url: "/api/guests/search",
  	  type: "POST",
  	  data: {"zipcode": "91234"},
  	  contentType: 'application/json'
  	}).done((data) => {
  		console.log(data)
  	});
  • Host
  1. POST request (create a new host)
  $.ajax({
    type: 'POST',
    url: '/api/hosts',
    data: JSON.stringify({data: host}),
    contentType: 'application/json',
    success: function(data){
      console.log(data)
    },
    error: function(err){
      console.log(err);
    }
  })

Requirements

Express 4.16.3

Development

Installing Dependencies

From within the root directory:

sudo npm install -g bower
npm install
bower install

Config with SQL

login to sql

mysql -u root
create database wyft;

Roadmap

View the project roadmap here

Contributing

See CONTRIBUTING.md for contribution guidelines.