Skip to content

chuckdries/sunhacks-2020-webdev2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Adding a Backend to a React App

This repo is a click counter that simply counts how many times a button has been clicked. Every click is registered in a database, and the client auto-refreshes every 5 seconds

This tutorial was a live stream given at Sunhacks 2020. The recording is here https://youtu.be/_Yvkc1CTGXc

Running

This repo has two components: the client, and the server. You should run both at the same time.

Client

  1. cd client
  2. yarn to install dependencies
  3. yarn start to run the code

Server

  1. cd server
  2. npm install to install dependencies
  3. node index.js to run the code