8000 GitHub - J8298c/yumshub: grub hub clone
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

J8298c/yumshub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

build pass or fail

Yums!

Yums lets you search for restuarants that deliver near you. Users have the ability to search for food by type on a side note currently the only options we have for search are "Italian Pizza Burgers Vegan American Spanish". The search page provides a view of all types of restuarants and all nearby restuarants and thier rating, if you want to check out the restaurants menu just click on the restuarant of your choosing and you will be taken to the restaurants menu.


Getting Started

These instruction will help you get a local copy of Yum up and running.

Prerequisites

Yum is built on top of facebooks create-react-app, You can find out more about that here (https://github.com/facebookincubator/create-react-app)

You need to have a package manager such as nodes npm (https://www.npmjs.com) or yarn (https://yarnpkg.com).

You will also need node installed on your local dev machine which can be found here (nodejs.org)

You will also need express installed locally as well which can be found here (https://expressjs.com/)


Installing

To install Yum on your local machine, checkout the repo and cd into your local copy and run yarn install or npm install. This will install all the needed dependencies

To fire up Yum in your browser you can run Yarn/Npm dev this will start the development server which will watch your files for errors everytime you save.

If you want to further configure the webpack build you can run Yarn/Npm eject(This is irreversible).

To login into the app you can create a username and password or simply use the default user below

  • Username: thewolverine@xmen.com
  • Password: abcd1234

Testing

Yum is using enzyme and sinon for testing you can read more about them here enzyme and sinon

Most of the tests use shallow rendering to test that the inner elements of the components are rendering below you can see a quick example this type of test

describe('<NotFound />', ()=>{
	it('should render correctly', ()=>{
		const wrapper = shallow(<NotFound />);
		expect(wrapper.find('div')).to.have.length(1);
		expect(wrapper.find('h1')).to.have.length(1);
	})
})

Deployment

To serve your file first run the Yarn/Npm build command to rebuild all the files in the Build folder.


Built With


About

grub hub clone

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0