Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/antoniosarosi/mern-exercise-tracker
Simple MERN Web App example
https://github.com/antoniosarosi/mern-exercise-tracker
express mern-stack mongodb react
Last synced: 4 days ago
JSON representation
Simple MERN Web App example
- Host: GitHub
- URL: https://github.com/antoniosarosi/mern-exercise-tracker
- Owner: antoniosarosi
- Created: 2020-06-28T17:31:45.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-12-13T05:43:12.000Z (almost 2 years ago)
- Last Synced: 2023-03-05T01:16:24.791Z (over 1 year ago)
- Topics: express, mern-stack, mongodb, react
- Language: JavaScript
- Homepage:
- Size: 492 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MERN Exercise Tracker
Simple MERN Web App, original code & author:
https://www.youtube.com/watch?v=7CqJlxBYj-M&t=2189s## Setup
First, clone the repo and cd into the project
```bash
git clone https://github.com/antoniosarosi/MERN-Exercise-Tracker.git
cd MERN-Exercise-Tracker
```### Docker setup
Use the setup script:
```bash
bash docker-setup.sh
```
### Run on Docker containers
```bash
docker-compose up
```
### Local setup
Use the auto setup script:
```bash
bash local-setup.sh
```Or if you prefer to do it manually:
```bash
# Backend
cd backend
npm i
touch .env
echo "MONGO_URI=mongodb://localhost/mern-exercise-tracker" >> .env
# Or create a Mongodb Atlas cluster and use that URI
echo "# MONGO_URI=mongodb+srv://:@/?" >> .env# Frontend
cd ../frontend
npm i
touch .env
echo "REACT_APP_API_URL=http://localhost:5000" >> .env
```
### Run locally
In the project directory:
```bash
cd backend
npm run dev
```
On another terminal:
```bash
cd frontend
npm start
```Backend will be on port 5000 and frontend on port 3000 (if not already in use)