This is not Tutorial of any kind for MEAN, If you are MEAN newbie or familiar with advanced JavaScript has already started to learn MEAN stack, you can you use following article and its code helpful to kick start your MEAN project or you never know might end up learning something 🙂
Following are some steps by steps instructions regarding how I created this MEAN starter code with CRUD as usual.
node -v (to check version)
Create Db and at least one standard Collection to start with
npm init (follow instructions on VS Code terminal)
npm i express mongoose body-parser (to download to install express fx, mongoose package to access mongodb and easily parse through body-parser)
Create db.js in root like below to create connection between mongodb and your application
Create index.js (to setup external packages and open port and setup controllers)
Create your collection model in code, I created Crypto Coin model (its trendy, isn’t it)
Create Controller.js class for your CRUD operations
Application code flow would be like below
HTML → Component.ts → Service.ts → Controller.js → Model.js → Mongoose → MongoDb
We use cookies to give you the best online experience. Please let us know if you agree to all of these cookies.