Skip to content

claytonpabst/amazon-clone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React-Seed-Auth0 With Redux

This is a fully functional basic React app seed. It comes with Redux and Passport/Auth0 already set up, and uses Node, Express, Massive, and SQL for the back end.

To Use This Seed

  1. Clone this seed
  2. In the terminal, navigate to the project folder and run 'npm i'
  3. Create a 'config.js' file in the server folder (It is already ignored).

Should look something like this

module.exports = {
  secret: "aetbmjljfcbn!%$*$nkrlhlkhnannalvlwher#$%66345nlk",
  auth0:{
    clientID: "Auth0 client ID goes here",
    clientSecret: "Auth0 client secret goes here"
  },
  connection: {
    host: //host (you'll find this info in your heroku db credentials),
    port: //port,
    database: //database,
    user: //user,
    password: //password
    ssl: true
  },
  port: 8000
};

Note - Having the backend run on port 8000 allows npm start to run on port 3000 at the same time. This allows you to build your front end using npm start, while the backend will still respond to local api calls.

  1. For development - Use two terminals. Navigate to the project folder on both, and run npm start on one, and nodemon on the other.
  2. For production - Navigate to the project folder and run npm run build. Once that is done, run nodemon.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published