/Mern-example

FullStack JS app example using MERN (Mongo Express React Node).

Primary LanguageJavaScriptMIT LicenseMIT

Mern-example

FullStack JS app example using MERN (Mongo Express React Node).

Screenshots

List page

Edit page

View page

How to install

This app is based on Node.js. MongoDB is used as database, so make sure that it is installed and running on your system.

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.

Miscellanous

  • 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.

License

The MIT License. Further details see LICENSE file.

Contributing

Please fork if you want to contribut to this project.