Giter VIP home page Giter VIP logo

mdb-react-protected-routes-contextapi's Introduction

MDB-React-Protected-Routes-ContextAPI

Atlas App Services + React + GraphQL Starter Kit

LIVE DEMO

https://mdb-react-context-spfnd.mongodbstitch.com/

Inspired by

Blog Post: https://www.jeffedmondson.dev/blog/react-protected-routes/

Icons

https://marella.me/material-icons/demo/

This project is meant to be a good starting point for everything from a hackathon, to a production-ready project. Most templates or starter kits are very opinionated, and force you to do things in their pre-determined structure. This template seeks to do the opposite.

The projects goes for a minimalistic approach - providing only the absolute minimum to make things usable. This gives you the power to add ANYTHING to the project. You have the ability to quickly adjust, without having to re-code the main parts of the application. Routing/Secure Navigation, Authentication, and the UI/UX.

The project includes bits of functionality that I've struggled in the past integrating into a React application. My hope is that by sharing this - other people can skip the headaches, and get to building cool things on these amazing platforms!

Project Goals

  • Quickly empower developers to build cool features
  • Flexibility to style/design the UI/UX as desired
  • No need to re-code, worry about Authentication and securing routes
  • GraphQL communication without Apollo client (CRUD)
  • Avatar View (Movel-Viewer/3D objects)

Getting Started

What you will need:

  • Realm App (Realm App Id) with Email/Pwd Auth enabled ([email protected] as the username/pwd)
  • Sample Dataset loaded into a cluster
  • GraphQL Endpoint configured for the sample movies collection

If you have not previously done so, I highly encourage you to check out: https://www.mongodb.com/docs/realm/web/graphql-apollo-react/

Once you are ready, do the following:

git clone https://github.com/ranfysvalle02/MDB-React-Protected-Routes-ContextAPI.git
cd MDB-React-Protected-Routes-ContextAPI
npm i

From here, you need to do a find and replace for the following (across the whole project)

"__YOUR__APP__ID__" should be replaced with your app id
"__GRAPHQL_ENDPOINT__"should be replaced with your graphql endpoint

After you have made the changes in the source code, you are now ready to begin.

npm run start

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.