This project is the React code relating to the Ember vs React— the ultimate battle (Round 1) and Ember vs React - round 2 articles.
This is a very basic example of how to get started with React. It uses firebase for data persistence and css for styling.
npm start
- Starts the project and you will be directed to the localhost
-
You need to make a firebase account.
-
Create a project
- Click on database tab
- Click real time database
- Click start in test mode
-
Go to overview page
-
Click 'Add firebase to your web app'
-
Create the firebase.js file in the src folder and copy the firebase object into the file. So it looks similar to this:
import firebase from 'firebase';
var config = {
apiKey: "",
authDomain: "",
databaseURL: "",
projectId: "",
storageBucket: "",
messagingSenderId: ""
};
firebase.initializeApp(config);
export default firebase;
And then you will have your own firebase setup.