Git Product home page Git Product logo

call0fcode / react-movieslist-database Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 737 KB

Demo app to showcase communication between React and the Firebase Realtime Database.

Home Page: https://c0c-react-database-communication-demo.netlify.app/

HTML 4.23% CSS 16.01% JavaScript 79.77%
react react-hooks css-modules fetch-api firebase-realtime-database create-react-app conditional-rendering netlify continous-deployment database learning-react

react-movieslist-database's Introduction

Communicating frontend and a database

Small practice created with create-react-app that showcases how the comunication between the frontend (React) and a database (Firebase Realtime Database in this case) through the Firebase API takes place.

You can add movies, fetch the movies list and delete movies on the database.

For the development of the app the following React features and techniques have been implemented:

  • React hooks:
    • useState
    • useEffect
    • useCallback (improvement to avoid functions declaration on each component re-render)
  • Conditional rendering
  • Styling with CSS modules
  • Fragments

The native JavaScript Fetch API has been used in order to communicate with the database (for fetching, adding o deleting data).

See working app: Demo communication frontend <-> database

Instructions to start the development environment:

Once the project is downloaded, in the root folder of the project run:

1.Install the necessary dependencies:

npm install

2.Start the local server to view the project in the browser.

npm run start

Notes

Production deployment of the application is done through Netlify's continuous deployment feature.

react-movieslist-database's People

Watchers

 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.