FullStack JS app example using MERN (Mongo Express React Node).
This app is based on Node.js. MongoDB is used as database, so make sure that it is installed and running on your system.
- For backend part, it uses: Express, Multer and Mongoose.
- And for front end, it uses: React, Redux, Axios and Redux-thunk, React-notification-system, react-confirm-alert, and Bootstrap v3.4.1.
Clone or Download this repository.
git clone https://github.com/arasT/mern-example
Extract the archive file and move into it.
cd Mern-example
First of all, make sure that mongod service is running.
sudo service mongod start
Then, run the backend server. Install all needed packages (go into the "back" folder), then run it:
cd ./back
npm install
npm start
Finaly, run the frontend server. Install all needed packages for (from another terminal, go into "front" folder), then run it:
cd ./front
npm install
npm start
It will open a browser and display the home page at: http://localhost:3000.
- Backend server use port 3001 by default, you can change it into ./back/src/config/index.js file then adjust ./front/src/config/index.js file.
- Frontend server use port 3000.
- Other usefull tools: Postman, Mongo-express.
The MIT License. Further details see LICENSE file.
Please fork if you want to contribut to this project.