Giter Club home page Giter Club logo

node-starter-app-mongo's Introduction

node-starter-app-mysql

A boilerplate for Node.js web applications.

It is based on following libraries and frameworks-

  1. Express.js
  2. Ejs template engine
  3. mongoose
  4. jQuery
  5. Semantic UI
  6. JsonWebToken for authentication

Folder Structure

  1. bin: It contains the main file 'www' which starts node server
  2. config: All the configurable parameters and credentials
  3. data: json data
  4. logs: logs dumps here
  5. middlewares: All the middlewares defined here
  6. models: Sequelize models (database schema)
  7. modules: Independent modules used throughout the app are defined here
  8. public: All the static resources (js, css, images)
  9. routes: All the routes
  10. services: These act as middlemen between routes and database. All the database operations are made here.
  11. views: Contains HTML and .ejs files used for rendering to frontend

How to install

  1. git clone https://github.com/varunon9/node-starter-app-mongo.git
  2. cd node-starter-app-mongo
  3. npm install
  4. cd public
  5. bower install
  6. create database 'nodeStarterAppMongo' in MySql create database nodeStarterAppMongo
  7. come back to project directory cd ..
  8. start app nodemon bin/www or node bin/www
  9. visit localhost:4000 in browser

Naming Conventions

  1. using camelCase for naming variables, functions in javascript
  2. using camelCase for naming MySql tables, CSS IDs
  3. using hyp-hens for naming CSS classes
  4. using under_scores for naming files and folders
  5. using UPPERCASE for constants and global variables
  6. using PascalCase for naming Javascript classes

Coding Conventions

  1. Line length max 80 characters for Javascript
  2. Line length max 120 characters for HTML
  3. Standard JS coding conventions- https://www.w3schools.com/js/js_conventions.asp

Screenshots

Home Screen Dashboard Screen
Login Screen Signup Screen

Learning Resources

  1. JavaScript Functions

For query/issues create Github issue or contact: [email protected]

node-starter-app-mongo's People

Contributors

varunkumar2 avatar varunon9 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.