Skip to content

Commit

Permalink
chore: added api/.env.sample
Browse files Browse the repository at this point in the history
  • Loading branch information
r2g committed Jun 30, 2022
1 parent aa4b1a2 commit 46431a1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions api/.env.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
PORT=4000
PORT_FE=3002
NODE_ENV=development
8 changes: 6 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ This is a proof of concept repo that sideloads a CRA app into an express ejs vie

## Development

Startup both apps using node-foreman by first installing it
Clone the repo and install npm dependencies in the `api` and `frontend` folders

copy `api/.env.sampe` to `api/.env`

Startup both apps using node-foreman by first installing it.

`npm i -g node-foreman`

Expand All @@ -16,7 +20,7 @@ You can access the Front end app on `http://localhost:3000` and call the API hea

## Production

Set` NODE_ENV=production` in /api/.env
Set ` NODE_ENV=production` in `api/.env`

Build the RCRA front end with `yarn build`

Expand Down

0 comments on commit 46431a1

Please sign in to comment.