Giter VIP home page Giter VIP logo

simple-form's Introduction

About the project

This is a simple form project that contains a custom made image drag-n-drop component based on react-dropzone.

It is also connected to Firebase by using Cloud Firestore.

Technologies

Instructions

To correctly setup this project you need, essentially two things: Nodejs and A sample project in Firebase.

Configs

  1. Create a new Firebase project.
  2. create a new colection called students.
  3. Export your Firebase config variables to a .env.development file and give it the next structure:
    REACT_APP_FIREBASE_KEY = <string>
    REACT_APP_FIREBASE_DOMAIN= <string>
    REACT_APP_FIREBASE_DATABASE = <string>
    REACT_APP_FIREBASE_PROJECT_ID = <string>
    REACT_APP_FIREBASE_STORAGE_BUCKET = <string>
    REACT_APP_FIREBASE_SENDER_ID = <string>
    REACT_APP_FIREBASE_APP_ID = <string>

note: the .env.development must be in the root's project directory, not in src or any other folder.

  1. run yarn start and test the app.

Deployment

To deploy the app with Firebase's Hosting service please follow the next steps:

  1. create a .env.production.local file with your Firebase project credentials as shown above
  2. In the root of the project run yarn build
  3. run firebase login
  4. run firebase init
  5. run firebase deploy

That should be it, please let me know if you have any questions about the project

simple-form's People

Contributors

afcajamarcar avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.