Giter Site home page Giter Site logo

node-sample-app's Introduction

Simple web application built with Node, MySQL, NoGap and Angular and Bootstrap.

Installation

  1. Install MySQL or XAMPP

  2. Install a MySQL database manager, such as MySQL Workbench or SQLyog

  3. Install Node

    1. Add Node to your global PATH
  4. Install a Git client, such as MSysgit [Windows] or others

    1. Add git (and, on Windows, include UNIX TOOLS) to your global PATH
  5. Open a command line, aka shell, aka terminal [e.g. cmd on Windows]

  6. Go to your code folder, using cd

  7. Run: git clone https://github.com/Domiii/node-sample-app.git [to download this code]

  8. Run: cd node-sample-app

  9. Run: npm install [to download and install all necessary libraries and other dependencies of this code]

  10. Configure your application: Create a new file appConfig.user.js and add:

    "use strict";
    
    module.exports = {
        // my custom configuration here
    };
    1. Add your DB configuration. For example:

      "use strict";
      
      module.exports = {
          // my custom configuration here
          'db' : {
              'host'     : 'localhost',
              'user'     : 'root',
              'password' : '',            // no password
              'database' : 'my_db'
          },
      };
    2. Make sure that the database exists (i.e. my_db in this example): You can create a new DB with MySQL Workbench or with SQLyog.

    3. You can make more customizations by copying and overriding any values from appConfig.js.

  11. Run: node app.js

  12. Open your browser and go to: localhost:9132

Done!

Other Tools

  • Sublime Text [for editing and writing code]
    • Tools -> Open Project -> Presentations.sublime-project

node-sample-app's People

Contributors

domiii avatar chengchieh800106 avatar dereknien avatar

Stargazers

 avatar

Watchers

James Cloos 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.