angularjs-Zza-BMEAN
angularjs-Zza-BMEAN copied to clipboard
Problem getting Mongo to work
I am having problems getting Mongo to work as per your solution - i,e, as per your webstorm picture.
I am able to set the datapath directory but cannot include the database file name as Mongo reports "ERROR: dbpath (..\database\zza) does not exist." - and yes I have unziped the three database files into data directory.
If I omit the database file name (\zza) and start Mongo and the web server, the loading page loads with the default image but stops there.
Also your main readme fille has :
Extract the database Extract the Zza application's MongoDB database in zza-mongo-database.zip to your MongoDB data directory. The default location per MongoDB installation instructions is C:\data. Your location may be different. You only have to install this database once.
but the webstorm setup suggests the correction in the database directory in the project folder.
I updated the README on GitHub.
You need to extract the zip file contents to the directory <projectDir>/database/zza
Pay attention to the working directory specified in the Edit Tool
dialog… it should be the <projectDir>/client directory.
Thanks Thomas for the quick reply, My stupid error thought zza referred to the database file rather than a directory!
Anyway after making the changes I can see that Mongo has 5 connections, and starting a separate command window with mongo I can use the zza database - however still stuck on the loading page - any suggestions?
Open the Developer Tools window (Chrome) and paste [here] the errors that are shown in the console view.
Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost:8080/vendor/requirejs/require.config.js
Current content of that folder:
Ran the following from requirejs web page: If you are using Node with NPM, you can install r.js globally as part of the "requirejs" package in NPM:
npm install -g requirejs r.js -o app.build.js
then went back to your install instructions: cd <projectDirectory>/client/build
rem Now update the NPM modules for Grunt npm update
rem Now use Bower to install/update the AngularJS vendor libraries bower update
following warning on the npm update:
So you update the NPM modules and the Bower vendor files/dir.
But you have not run the Grunt dev
to rebuild and redeploy the app for development debugging.
Thus the Gruntfile task copy:dev_boot has not copied the configuration file for requirejs (which is only needed IF you want to dynamically load the classes during dev
deployment).
I have modified the install to initial look for require.config.js in the assets/js
directory.
I also modified the Gruntfile.js to build/deploy this way also.
Plz updated from the origin/master and try again.
Many thanks I downloaded a new zip version and it worked first time!
Can I ask a general question regarding how easy is it to deploy on Heroku - i.e. what changes has to be made?
Your /server
NodeJS code must be in the root of your project ( /server/app-server.js ) and your database connection information must be updated:
- app-server.js - see
workingDir
comments for required change - zza/database.js - update settings to use online, oceaniq Mongo database
- you will need a Procfile in your root directory