Simple web application built with Node, MySQL, NoGap and Angular and Bootstrap.
-
Install a MySQL database manager, such as MySQL Workbench or SQLyog
-
Install Node
-
Open a command line, aka shell, aka terminal [e.g.
cmd
on Windows] -
Go to your code folder, using
cd
-
Run:
git clone https://github.com/Domiii/node-sample-app.git
[to download this code] -
Run:
cd node-sample-app
-
Run:
npm install
[to download and install all necessary libraries and other dependencies of this code] -
Configure your application: Create a new file
appConfig.user.js
and add:"use strict"; module.exports = { // my custom configuration here };
-
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' }, };
-
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. -
You can make more customizations by copying and overriding any values from appConfig.js.
-
-
Run:
node app.js
-
Open your browser and go to:
localhost:9132
Done!
- Sublime Text [for editing and writing code]
- Tools -> Open Project ->
Presentations.sublime-project
- Tools -> Open Project ->