Name: node-pg-ngMaterial-mapgl-template
Owner: SpatialDev
Description: Template app with angular, material design, postgres, mapboxgl
Created: 2016-01-19 17:25:36.0
Updated: 2016-01-19 18:14:46.0
Pushed: 2016-08-09 02:59:34.0
Homepage: null
Size: 2855
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
We have two kinds of dependencies in this project: tools, database and angular framework code. The tools help us manage and test the application.
npm
, the [node package manager][npm].bower
, a [client-side code package manager][bower].We have preconfigured npm
to automatically run bower
so we can simply do:
install
Behind the scenes this will also call bower install
. You should find that you have two new
folders in your project.
node_modules
- contains the npm packages for the tools we need for the serverpublic/assets
- contains the all bower packages for the tools we need for the applicationNote that the assets
folder would normally be installed in the root folder but
angular-seed changes this location through the .bowerrc
file. Putting it in the app folder makes
it easier to serve the files by a webserver.
public/app
and include your MapboxGL access tokenauthentication
property in the settings file to true. This feature also requires your GitHub
clientId
, clientSecret
, and callbackURL
. By default, the callbackURL
points to the our local port, 4000, also configurable in
settings.js. With this feature turned on, users are required to login into GitHub to enter the map applicationgrunt build watch
node server.js
The app is now running @ http://127.0.0.1:4000 !!!!