• Stars
    star
    200
  • Rank 195,325 (Top 4 %)
  • Language
    CSS
  • License
    MIT License
  • Created over 4 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

ReactSecurity - Orbit

Twitter: ryanchenkie

👋 Welcome to Orbit! This is a demo app for learning security for React applications. You can find out more at ReactSecurity.io.

A Look at the App

Here's the dashboard for the app orbit dashboard

For a more in-depth tour, check out this video:

orbit tour

There are two parts to the app in this project: orbit-app and orbit-api. These are the front end React application and the backend Node API respectively.

Install the Dependencies

We need to install dependencies for both orbit-app and orbit-api. Change directories into each and install with npm or yarn.

With npm:

cd orbit-app
npm install
cd ../orbit-api
npm install

With yarn:

cd orbit-app
yarn
cd ../orbit-api
yarn

Set Up the Environment Files

The React app contains a file called .env.local. This file has a single variable called REACT_APP_API_URL which is used to connect to the backend. You can leave this as is.

The backend contains a file called .env.example. This file needs to be renamed to .env and provided with values.

For ATLAS_URL, provide the connection string to your MongoDB Atlas cluster. You can use other MongoDB providers, or even use a local MongoDB connection. Learn how to create a MongoDB instance with Atlas here.

For JWT_SECRET, provide a long, strong, unguessable secret, much like you would in production.

Run the Applications

The React app is built with create-react-app. Run it with the script provided in its package.json file.

cd orbit-app
npm start

The Node API comes with a script in its package.json which allows you to run it in development mode with nodemon.

Open a new terminal window, change directories into the API, and start it up.

cd orbit-api
npm run dev

The Node API will be running at http://localhost:3001.

Navigate to http://localhost:3000 to see the app running!

License

MIT

More Repositories

1

graphql-auth

JavaScript
362
star
2

react-user-authentication

JavaScript
126
star
3

vue-events-bulletin

Code for the Scotch.io Vue.js tutorial
JavaScript
87
star
4

vue-node-time-tracker

JavaScript
73
star
5

user-authentication-api

JavaScript
66
star
6

jot-bot

Token-Based Authentication for AngularJS and Laravel Tutorial
PHP
54
star
7

next-prisma

TypeScript
51
star
8

ng2-cribs

TypeScript
30
star
9

angular2-user-authentication

TypeScript
29
star
10

next-prisma-ecommerce

TypeScript
28
star
11

socialcue

TypeScript
27
star
12

aurelia-jwt-auth

JavaScript
25
star
13

angular-cli-heroku

TypeScript
23
star
14

fem-instructors-api

API for Front End Masters Hapi.js Workshop
JavaScript
21
star
15

ngclassifieds

HTML
18
star
16

angular-auth

TypeScript
17
star
17

shirt-shop

TypeScript
16
star
18

prisma-ecommerce

TypeScript
14
star
19

graphql-server

GraphQL Server for Front End Masters' GraphQL Workshop
JavaScript
14
star
20

fem-instructors-app

Client side app for Front End Masters Hapi.js Workshop
TypeScript
13
star
21

auth0-graphql

CSS
11
star
22

try-graphql

CSS
10
star
23

custom-operators-workshop

RxJS Custom Operators Workshop for ng-conf 2018
TypeScript
9
star
24

reactathon-security-workshop

8
star
25

orbit-graphql

CSS
8
star
26

angular1-user-authentication

JavaScript
8
star
27

angular-coordinates

Code for the AngularJS Custom Filter tutorial at ryanchenkie.com/angularjs-custom-filter
JavaScript
5
star
28

egghead-react-auth-workshop

4
star
29

casino-api

TypeScript
3
star
30

thisdot-prisma

TypeScript
3
star
31

chenkie.github.io

HTML
2
star
32

angular-laravel-typeahead

Simple Typeahead with AngularJS and Laravel
PHP
2
star
33

formly-car-rental

Code for the Angular-Formly Tutorial on Scotch.io
JavaScript
2
star
34

fire-status

Code of the AngularJS + Firebase Tutorial on Sitepoint
JavaScript
2
star
35

electron-auth0-quickstart

JavaScript
2
star
36

silent-authentication

TypeScript
2
star
37

dinos-dragons-graphql

JavaScript
1
star
38

contacts-app

CSS
1
star
39

orbit-nexus

CSS
1
star
40

react-graphql-auth

JavaScript
1
star
41

ng-cribs

Code for the tutorial at ryanchenkie.com
HTML
1
star
42

enterprise-ng

TypeScript
1
star
43

material-contact-form

TypeScript
1
star
44

ottawa-js-jwt

JavaScript
1
star
45

mission-control-csa

JavaScript
1
star
46

vue-github-users

Code for SitePoint Vue.js Article
Vue
1
star