Skip to content

Commit 3059b36

Browse files
Sarah StauberSarah Stauber
Sarah Stauber
authored and
Sarah Stauber
committed
initial set up
1 parent d0942b4 commit 3059b36

File tree

4,225 files changed

+389154
-96758
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

4,225 files changed

+389154
-96758
lines changed

Procfile

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
web: npm run server

README.md

100644100755
+43-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,43 @@
1-
TrypNinja - Project 3
1+
# Create React Express App
2+
3+
## About This Boilerplate
4+
5+
This setup allows for a Node/Express/React app which can be easily deployed to Heroku.
6+
7+
The front-end React app will auto-reload as it's updated via webpack dev server, and the backend Express app will auto-reload independently with nodemon.
8+
9+
## Starting the app locally
10+
11+
Start by installing front and backend dependencies. While in this directory, run the following commands:
12+
13+
```
14+
yarn install
15+
cd client
16+
yarn install
17+
cd ..
18+
``
19+
20+
After both installations complete, run the following command in your terminal:
21+
22+
```
23+
yarn start
24+
```
25+
26+
That's it, your app should be running on <http://localhost:3000>. The Express server should intercept any AJAX requests from the client.
27+
28+
## Deployment (Heroku)
29+
30+
After confirming that you have an up to date git repository and a Heroku app created, complete the following:
31+
32+
1. Build the React app for production by running the following command:
33+
34+
```
35+
yarn build
36+
```
37+
> Note: A yarn build will be required to register any new Post requests from any front-end JavaScript to to prevent any proxy server errors.
38+
39+
2. Add and commit all changes to git
40+
41+
3. Push to Heroku
42+
43+
If all previous steps were followed correctly, your application should be deployed to Heroku!

client/node_modules/.bin/acorn

-15
This file was deleted.

client/node_modules/.bin/acorn

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/node_modules/.bin/acorn.cmd

-7
This file was deleted.

client/node_modules/.bin/ansi-html

-15
This file was deleted.

client/node_modules/.bin/ansi-html

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/node_modules/.bin/ansi-html.cmd

-7
This file was deleted.

client/node_modules/.bin/atob

-15
This file was deleted.

client/node_modules/.bin/atob

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/node_modules/.bin/atob.cmd

-7
This file was deleted.

client/node_modules/.bin/babylon

-15
This file was deleted.

client/node_modules/.bin/babylon

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/node_modules/.bin/babylon.cmd

-7
This file was deleted.

client/node_modules/.bin/browserslist

-15
This file was deleted.

client/node_modules/.bin/browserslist

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/node_modules/.bin/browserslist.cmd

-7
This file was deleted.

client/node_modules/.bin/cssesc

-15
This file was deleted.

client/node_modules/.bin/cssesc

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/node_modules/.bin/cssesc.cmd

-7
This file was deleted.

client/node_modules/.bin/csso

-15
This file was deleted.

client/node_modules/.bin/csso

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/node_modules/.bin/csso.cmd

-7
This file was deleted.

client/node_modules/.bin/detect

-15
This file was deleted.

client/node_modules/.bin/detect

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/node_modules/.bin/detect-libc

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/node_modules/.bin/detect-port

-15
This file was deleted.

client/node_modules/.bin/detect-port

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/node_modules/.bin/detect-port.cmd

-7
This file was deleted.

client/node_modules/.bin/detect.cmd

-7
This file was deleted.

client/node_modules/.bin/errno

-15
This file was deleted.

client/node_modules/.bin/errno

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/node_modules/.bin/errno.cmd

-7
This file was deleted.

client/node_modules/.bin/escodegen

-15
This file was deleted.

client/node_modules/.bin/escodegen

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/node_modules/.bin/escodegen.cmd

-7
This file was deleted.

client/node_modules/.bin/esgenerate

-15
This file was deleted.

client/node_modules/.bin/esgenerate

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/node_modules/.bin/esgenerate.cmd

-7
This file was deleted.

0 commit comments

Comments
 (0)