This is the MEAN stack development project with angular6, nodejs, expressjs, mongodb using TypeScript, developed by Angular CLI and visual studio code tools.
This project uses the MEAN stack:
- Mongoose.js (MongoDB): database
- Express.js: backend framework
- Angular 6: frontend framework
- Node.js: runtime environment
- TypeScript: is a language for application-scale JavaScript.
Other tools and technologies used:
- Angular CLI: project scaffolding
- Bootstrap4: layout and styles
- Angular Material: frontend framework
- Font Awesome: icons
- ng2-toastr: toastr
- JSON Web Token: user authentication
- Angular JWT: JWT helper for Angular
- Bcrypt.js: password encryption
- Install Node.js and MongoDB
- Install Angular CLI:
npm i -g @angular/cli
andnpm install -g typescript
- From project root folder install all the dependencies:
npm i
git clone https://github.com/DetaElectPro/MEAN
cd MEAN
cp .env.example .env
npm install
npm run dev #(for development)
- Run
mongod
andmongo
serices (If you get any error like connection faild, just create the folder C:\data\db). orsystemtlc start mongodb
orservice mongod start
on Linux npm run dev
: concurrently execute MongoDB, Angular build, TypeScript compiler and Express server.npm run prod
: run the project with a production bundle and AOT compilation