Basic C R U D example with MongoDB, Express, React, Nodejs
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
Node.js https://nodejs.org
MongoDB https://www.mongodb.com/
Basic knowledge in js(Es5 y Es6)
Download or Clone the proyect
open the console or terminal in the folder proyect and write:
npm install
you need run webpack in other terminal for the aplication to be understood for the browser with:
npm run webpack
Finally you need start the server with:
npm run dev
Example terminal logs:
> nodemon src/index.js
[nodemon] 1.19.1
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: *.*
[nodemon] starting `node src/index.js`
server inicializado on port 3000
conection success
GET / 304 11.696 ms - -
GET /bundle.js 200 5.970 ms - 935723
you can see the example in http://localhost:3000/
You can kill the process with:
ctrl + C or cmd + c and press 'Y'
In the proyect we not used any template, for understand all parts of the proyect
-
Mongo - Data Base
-
Express js - framework for database connection
-
React - Front end
-
Node.js - Dependency Management and Back end
-
Materialize css - css framework
-
Webpack - Bundle you scripts
-
Nodemon - tool for node
- Hugo Arturo Torres
This project is free