This is a boilerplate for quickly standing up a node/express/react site with some basic features conducive to agile development.
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.
Here is some information relating to what you need as setup
create a file called .env in the root directory and put this into it:
DB_HOST=localhost
DB_USER=postgres
DB_NAME=
DB_PASS=
- Windows:
- start:
pg_ctl -D "C:\Program Files\PostgreSQL\13\data" start
- stop:
pg_ctl -D "C:\Program Files\PostgreSQL\13\data" stop
- restart:
pg_ctl -D "C:\Program Files\PostgreSQL\13\data" restart
- start:
- Mac:
- start:
pg_ctl -D /usr/local/var/postgres start
- stop:
pg_ctl -D /usr/local/var/postgres stop
- start: