https://github.com/play3rzer0/mern-stack
Web app that uses the MERN stack.
https://github.com/play3rzer0/mern-stack
backend express frontend javascript mern-stack mongodb node nodejs react
Last synced: 3 months ago
JSON representation
Web app that uses the MERN stack.
- Host: GitHub
- URL: https://github.com/play3rzer0/mern-stack
- Owner: Play3rZer0
- Created: 2025-01-09T18:06:43.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-11T17:47:04.000Z (over 1 year ago)
- Last Synced: 2025-03-23T08:11:20.351Z (over 1 year ago)
- Topics: backend, express, frontend, javascript, mern-stack, mongodb, node, nodejs, react
- Language: JavaScript
- Homepage:
- Size: 67.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is an application created using the MERN stack.
To install follow these instructions:
1. Create your project folder
2. Clone this repo
3. From your main project folder run "npm run build"
This will install the dependencies for the backend and frontend of the
application.
You need to create a .env file.
You need to set the environment variables for:
Mongo_URI=
PORT=
Once cloned and installed, run the following from the main
project folder:
"npm run start"
When running from Windows, using PowerShell, there are issues
encountered when using the script.
Make modifications in the package.json "scripts" section.
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "powershell.exe -Command \"$env:NODE_ENV='production'; node backend/server.js\"",
"dev": "powershell.exe -Command \"$env:NODE_ENV='development'; nodemon backend/server.js\"",
"build": "npm install && npm install --prefix frontend && npm run build --prefix frontend"
}