Skip to content

This is basic Burger order system using React js and backed as firebase. This application have the functionalities to create burger dynamically and placed the order. You can also see place order in order page.

License

Notifications You must be signed in to change notification settings

kpsinghct/react-burger-basic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Available Scripts

In the project directory, you can run:

npm run

Install all the depedencies of this project.

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

npm test

Launches the test runner in the interactive watch mode.
Note: Unit test is pending.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

Backend

  1. We are using google's firebase for our backend. You need to create new project at https://console.firebase.google.com/u/0/ and select Database from lefthand side menu bar and create new real time database. After database creation set rules public, if you dont want to it private. In private you need to authencticate before connecting database. So If you want to public you databse then use below database rules:-
{
  /* Visit https://firebase.google.com/docs/database/security to learn more about security rules. */
  "rules": {
    ".read": true,
    ".write": true
  }
}
  1. Create two tables there names orders and ingredients.

  2. Add below default values in ingredients table:-

      salad:0,
      bacon:0,
      cheese:0,
      meat:0
     }
  1. Now Copy base url which may like https://YOURPROJECTNAME.firebaseio.com and add it in your code file name axios-order.js in src folder.

About

This is basic Burger order system using React js and backed as firebase. This application have the functionalities to create burger dynamically and placed the order. You can also see place order in order page.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published