Skip to content

CurtisBaily/mern-shoppinglist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This project was bootstrapped with Create React App.


Deploying the app for Development

In the project directory, you can run:

npm install

Installs server-side dependencies from package.json.

npm run client-install

Installs client-side dependencies from client/package.json.

.env

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

npm run dev

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.


Deploying the app in production

Ensure evrionment variables are set for DATABSE_URL, port and NODE_ENV

npm install

Installs server-side dependencies from package.json.

npm run client-install

Installs client-side dependencies from client/package.json.

npm start

Rund the app in in a single node instance for production.


Learn More

You can learn more in the Create React App documentation.

To learn React, check out the React documentation.

Code Splitting

This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting

Analyzing the Bundle Size

This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size

Making a Progressive Web App

This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app

Advanced Configuration

This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration

Deployment

This section has moved here: https://facebook.github.io/create-react-app/docs/deployment

npm run build fails to minify

This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify

About

Example app built on the MERN stack.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published