Advertisement
Guest User

Untitled

a guest
Apr 17th, 2016
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.81 KB | None | 0 0
  1. Drupal server
  2.  
  3. Set up a local server, like XAMPP that uses PHP5 and MySql (or Maria-DB).
  4.  
  5. Clone this repository and put it in the directory that your srver serves from.
  6.  
  7. When you go to the homepage (probably http://localhost), you will see an error because the database is not configured.
  8.  
  9. Configure your database (if you're using XAMPP you can use PHPMyAdmin, probably at http://localhost/phpmyadmin) to add the following credentials:
  10.  
  11. database name: admin_flexfit
  12. username: flexfsite
  13. password: oDg%j342
  14. host: localhost
  15. Mobile app
  16.  
  17. The mobile app will be installed by default to flexfit/mobile. You can view it on your web browser, but it will not appear properly until you use the Ripple emulator and run it in Phonegap mode. If you're running the app from localhost, you'll also need to handle Cross Origin Resource Sharing (CORS). I use this extension. Check the javascript console (F12 in Chrome) to see if your Cross-Origin request is being denied.
  18.  
  19. By default, the app will connect to the Drupal server at flexfit.isodevelopers.com, even if you're hosting the app locally. To change this and connect to your local drupal install, edit the Drupal.settings.site_path variable in flexfit/mobile/app/settings.js. Note that if you change this value to localhost the app will work in your browser but not on a phone. To make it connect to your local Drupal server on a phone, set the value to your local IP address (provided that your phone is connected to the same network as your local server).
  20.  
  21. Dev Guide
  22.  
  23. Drupal
  24.  
  25. The Drupal site is the backend. It handles:
  26.  
  27. Authentication (People)
  28. Storing Trainers (Structure -> Content Types -> Trainers) Note: Everything below not implemented yet This entity holds the Trainer's bio, picture, ratings, and location
  29. Trainer reservations
  30. Payment
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement