Setting up Ionic framework:
npm install cordova ionic -g
Creating a folder for ionic and scaffolding an app:
Move to your desired location in your computer and create a folder eg:ionic
move to that folder and
ionic start projectnamehere sidemenu
The sidemenu argument creates an app with sidemenu. There are several such styles for scaffolding an app.
Serving ionic app:
To serve the app
The json-server is a simple server to serve json data for playing with Angular app in development. If you are learning AngularJS and want to play with json data you can use this json-server to serve static content for you!!
npm install json-server -g
Setting up a folder to serve:
Create a folder at any convenient place.
Move to that folder
Place your .json file in this folder eg: db.json To serve your content
$json-server --watch db.json
Type s + enter at any time to create a snapshot of the database
Now open your favourite browser and navigate to the said links you can see your json being served!!
If you want to serve images or any other static content then you need to put those in public folder.
Dim wsNew As Worksheet
Dim wsMaster As Worksheet
Dim x As Long
Dim cell As Range
'Sheet2 will be copied as new sheet and renamed with data in Sheet1 columns A and B
Set wsMaster = ActiveWorkbook.Sheets("Sheet2")
x = 1
Do While Not IsEmpty(Sheet1.Cells(x, 1).Value)
Sheet_name_to_create = Sheet1.Cells(x, 1).Value &amp; "-" &amp; Sheet1.Cells(x, 2).Value
Set wsNew = ActiveWorkbook.ActiveSheet
wsNew.Name = Sheet_name_to_create
x = x + 1
This creates sheets with name of col A and B in sheet 1 and copy the sheet2
Use native android building tools and write code in Java for App to work
If you want to use a Database write serverside logic in a way that it serves you the required data in the form of JSON. So the idea here is to build API that interacts with Database and serves you data for request you send.
Then you can process the JSON and use the data in your app.
Technology required: Java(for android app and server), XML (only for UI), android(learn about activity class, Intent Class, Fragments)
Build a serverside logic that serves JSON as above in any language you want.
Use AngularJS or ionic framework to build UI and get data by your server and render it as app through Phonegap
If you want to build a customized application then you need to use BackboneJS
- Start cmd as Administrator
- Create a directory for mongodb in c:
- Create two directories for log and db in mongodb folder
- Create a configuration file called mongodb.cfg in mongodb folder with contents:
- Create an empty file and save it as mongod.log and put it in c:\mongodb\log\
Adding to Windows service
"C:\Program Files\MongoDB\Server\3.2\bin\mongod.exe" --config "C:\mongodb\mongodb.cfg" --install
Start the service
net start MongoDB
Stop the service
net stop MongoDB
Why do you need a web-server?
All browsers understand only HTML,CSS and JS. The browser cannot interpret PHP or any other server side language. So you need some mechanism to convert PHP to HTML.
This is taken care by web-server. apache is the open source webserver used to serve PHP.
How to use a web-server?
Install the web-server then you need to configure it so as to have a directory(htdocs) to put all your code so that it can interpret and make browser understand the stuff.
Once you have configured it and start your webserver you can open it in a browser and can see the webserver serving HTML code even though you give it PHP code.