| title | Author | Tags |
|---|---|---|
MEAN Stack template application |
Agon Gashi (agonxgashi) |
MEAN Stack application template |
A simple (MongoDB, Express, Angular, Node) application template that works.
This simple template is meant to be used as a starting point for your next super-big MEAN Aplication. It is very easy to run and the comments should make every line of code I've written understandable (if not, feel free to propose changes 😉). It uses a minimum number of npm packages that are crucial to make the application work. Used packages are described below.
- express: Express is a minimal and flexible Node.js web application framework that provides a robust set of features for web and mobile applications.
- mongoose: Mongoose provides a straight-forward, schema-based solution to model your application data. It includes built-in type casting, validation, query building, business logic hooks and more, out of the box.
- path: The path module provides utilities for working with file and directory paths.
- /src: Angular app created using
angular/cli. - /repo: Contains mongoose Schemas
- /server: Files to be used on server-side
- /routes: Declared routes to be imported on
index.js
- /routes: Declared routes to be imported on
- /license: Feel free to use. Repo comes with MIT license 😎
- /index.js: File that is used to start the node server
- Prerequisites
- Node.js & npm: Please be sure you have installed Node.js and npm module on your computer before running the application
- MongoDB: Download & Install MongoDB, and make sure it's running on the default port (27017).
- AngularCLI: Is used to build front-end application.
- Be sure you have started MongoDB service before running the application
- Navigate on project folder
- Run
ng buildto generate Angular necessary files. Output files are by default created on/distsubfolder - Now run
node index.jsThis is the last step and if everything goes right, the server will start listening for requests - You can open your browser and navigate to localhost:3000 to see if the application works
Feel free to fork this repo or contact me on Telegram