Dr-Smoothie is mobile web application that can be compiled into an iPhone or Android application. This application allows you to create a smoothie recipe and share it with Facebook friends or through the Dr-Smoothie application. It also allows you to find what smoothie recipe random people or your friends have made.
github: https://github.com/brianlee389/Dr-Smoothie-2 github clone: https://github.com/brianlee389/Dr-Smoothie-2.git
The video is at the link below: screen-o-matic link: http://screencast-o-matic.com/watch/c2lfrGe0ZH
-
Create a Smoothie Recipe
-
Share Smoothie Recipes
-
Find other's Smoothie Recipes
-
See what nutrients are in a smoothie recipe
-
Play Framework 2.1.5
-
MongoDB 2.4.8
-
AngularJS 1.1.5
-
Bootstrap 3.0.2
-
jQuery 1.10.2 (used by 4)
-
Ionic
Follow these steps in order to deploy the seed on your machine:
-
Download and extract Play Framework/activator(This may not be necessary) 1a. Scala/sbt is needed to run play apps
-
Download and extract latest MongoDB
-
Clone the project:
git clone https://github.com/brianlee389/Dr-Smoothie-2.git
. -
Start
mongod
(the daemon process for the MongoDB system). -
Create and populate the databases using the mongo commands There is a list of json files given in the directory: DrSmoothie2/drsmoothie-database/exportdata
-
How to export data to mongo: Run the mongo command after running mongod.exe (use dr-smoothie-2) mongoimport.exe --db dbname --collection collectionname(nutrients) --file jsonfilename ex) mongoimport.exe - -db dbname --collection nutrients --file nutrients.json
-
Do the export for each of the json files given. The files are named collections.json ex) nutrients.json, ingredients.json
-
In the backend directory, there should be a program called activator. 8a. Run the activator command line program 8b. This will lead to program being compiled and jumped into activator mode 8c. type in run and the server will run
-
Alternatively you can run the command: activator run, which will run the server with localhost:9000
-
The backend only serves JSON ex) http://localhost:9000/api/(collectionsname) look in the routes file located in the directory: backend/conf/routes
After cloning the github repo, go into the DrSmoothie2 directory.
And the directories will be seen.
The directory, frontend, contains all the mobile web application components
Navigate to directory called backend. Then run the command line program activator run
After the server should be running and the mobile web application can now make calls to the server.
You can press Ctrl+D to stop the server.
##MUST READ Please ignore the public folder, it is generated template html files from making a Play Application!