Skip to content

cyborg7459/Survey-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

149 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to run this project locally

  • Clone the given repository into your device
  • Run the command npm install in your terminal in the root directory of the project to install the various dependencies
  • You'll have to setup your firebase database for the project. For that create an account on Google Firebase and then add a project. After your project is created, you'll get credentials like apiKey, authDomain, etc. Keep these details handy as you'd need them in the next step
  • In the ./src folder, create another folder by the name firebase and add create a file by the name firebase.utils.js
  • Within that file copy-paste the following code (replace the given values by the values from the credentials received upon creating a new firebase project)
 import firebase from 'firebase/app';`
 import 'firebase/firestore';
 import 'firebase/auth';

 const firebaseConfig = {
     apiKey: (your api key),
     authDomain: (your auth domain),
     projectId: (your project ID),
     storageBucket: (your storage bucket),
     messagingSenderId: (your messagingsenderID),
     appId: (your app ID),
     measurementId: (your measurement ID)
 };

 firebase.initializeApp(firebaseConfig);

 export const firestore = firebase.firestore();
 export const auth = firebase.auth();
 export const provider = new firebase.auth.GoogleAuthProvider();
 export default firebase;
  • Use the command npm start to run the app locally

About

An application for creating and filling surveys

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors