Skip to content

Agency4711/example-react-express

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Demo

https://magic-react-express.herokuapp.com/login

Quick Start Instructions

Start server

$ git clone https://github.com/magiclabs/example-react-express.git
$ cd example-react-express
$ mv .env.example .env
$ yarn install
$ node server.js

Start client (in a new CLI tab)

$ cd client
$ mv .env.example .env
$ yarn install
$ yarn start

.env Files

There are two environment files for the application, one client-side and one server-side.

You can grab the REACT_APP_MAGIC_PUBLISHABLE_KEY (client/.env) and MAGIC_SECRET_KEY (.env) from Magic's Dashboard.

client/.env (client)

REACT_APP_MAGIC_PUBLISHABLE_KEY=pk_test_1234567890
REACT_APP_CLIENT_URL=http://localhost:3000

.env (server)

MAGIC_SECRET_KEY=sk_live_123...
CLIENT_URL=http://localhost:3000
  • Note: the tutorial was built using Magic UI components. If you swap them out for your own custom CSS, you can delete @magiclabs/ui and framer-motionfrom your client/package.json dependencies.

Tutorial

https://magic.link/posts/magic-react-express

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 89.1%
  • HTML 10.1%
  • Shell 0.8%