This project was bootstrapped with Create React App.
In the project directory, you can run:
Installs server-side dependencies from package.json
.
Installs client-side dependencies from client/package.json
.
Provide the app the MongoDB URL.
echo "DATABASE_URL=<YOUR URI HERE>" >> .env
Specifying a port. (Default 5000)
echo "port=<port>" >> .env
Simulating production.
echo "NODE_ENV=production" >> .env
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.
Ensure evrionment variables are set for DATABSE_URL
, port
and NODE_ENV
Installs server-side dependencies from package.json
.
Installs client-side dependencies from client/package.json
.
Rund the app in in a single node instance for production.
You can learn more in the Create React App documentation.
To learn React, check out the React documentation.
This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting
This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size
This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app
This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration
This section has moved here: https://facebook.github.io/create-react-app/docs/deployment
This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify