A sample starter app using:
- Node.js platform
- Express web framework
- EJS templating engine
- MVC design pattern
- Mongoose MongoDB object modeling
- Lodash for JavaScript object iteration and manipulation
- jQuery library for DOM manipulation
- BootStrap Material Design framework for responsive design
- nedb In-memory database
- Winston logger
Following must be downloaded, installed, and configured according to the product directions:
- Node.js and npm
- Git version control system
- If Windows, TortoiseGit
- Add "Open PowerShell Here as Administrator" to context menu. Download and run file from https://github.com/profcase/open-command-window-here-as-admin.
- Install Visual Studio Code.
- Right-click on your project folder and select "Open with Code".
- RECOMMENDED: Under VS Code menu "File" option, check "Autosave".
- OPTIONAL: To type commands from within VS Code, from the VS Code menu, select View / Terminal.
Fork this repo into your own cloud account.
Clone your repo down to your local machine.
- app.js - Starting point for the application. Defines the express server, requires routes and models. Loads everything and begins listening for events.
- controllers/ - logic for handling client requests
- data/ - seed data loaded each time the application starts
- models/ - schema descriptions for custom data types
- routes/ - route definitions for the API
- utils/ - utilities for logging and seeding data
- views/ - EJS - embedded JavaScript and HTML used to create dynamic pages
In your new project folder, right-click and "Open PowerShell Here as Administrator". Install nodemon globally to enable live updates.
> npm install -g nodemon
Run npm install to install the project dependencies listed in package.json.
> npm install
In your project folder, right-click and "Open PowerShell Here as Administrator". At the prompt, type nodemon app.js to start the server. (CTRL-C to stop.)
> nodemon app.js
Open browser to the location displayed, e.g. http://localhost:8089/
- Ravi Kumar Atluri
- Varun Goud Pulipalpula
- Bala Gopi Krishna Sabbineni
- Midhun Kandakatla