Giter Site home page Giter Site logo

react-hooks-complete-fullstack's Introduction

A fullstack React/express blog using React hooks

This Project was bootstrapped with create-react-app

download or git clone the project files.

cd into both Project Directories in 2 different terminal windows and then install the dependencies

The "Client" directory contains the React code. The "Server" directory contains the code for the node.js express server. This project requries a PSQL database to run. This project also requires setting up an app on auth0.

For intructions on installing PSQL visit the offical PSQL website:
https://www.postgresql.org/

1st window

cd Client

2nd window

cd Server

1st window

npm install

2nd window

npm install


Run both the server and client at the same time

1st window

npm start (runs react at localhost:3000)

2nd window

npm run devstart (devstart runs nodemon at localhost:5000)

Set up PSQL

  1. Open the PSQL shell and login to PSQL
  2. Create a new PSQL database if you have not already done so.
  3. Simply copy the SQL code in the Server/main/schema.sql file and paste it in as commands into the PSQL shell.
  4. In the Server/main/db.js file replace the code with the login info for your own PSQL database.
  5. After setting up the PSQL database and making the required adjustments in the db.js file, the app will be fully functional.

(Optional) Set up auth0

You can optionally create your own auth0 app and subsitute the credentials in the Client/utils/auth.js file. You can also just use the default credentials I have provided.

react-hooks-complete-fullstack's People

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.