You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* This project consists of **API (currently, user management only) for Frontend consumption, via iPhone and Android Mobiles**, and an **administrative web based Backend system**.
14
+
* The APIs and the Backend system are **internationalization enabled**. Project currently supports English, French and Hindi but can be easily extended to include other languages.
15
+
* This project implements FOSRestBundle **API versioing system** via custom header "X-Accept-Version". Currently, the running API version is 1.0.
16
+
***Backend theming can easily be customized and extended**. Options have been provided to pick desired front-end theme for the Backend. The choices available are - Bootstrap, Materialize and Skeleton. **To change the theme, modify key "fronend_theme" in parameters.yml accordingly.** However, the design is open-ended and you may add your preferred theme easily. Please also note that theming has only been provided for base and nav. Other top level stuff is using bootstrap, you can theme as per your choice using base theme.
17
+
* The Web user management pages are coming directly from FOSUserBundle views. You may override these pages, per your need.
18
+
12
19
## Installation Steps:
13
20
14
21
**Step 0:**
@@ -34,6 +41,12 @@ This is an example project, ready to use. This project is using below Symfony Bu
34
41
- Composer
35
42
- Chrome browser with Postman plugin or separate Postman installation to test the API (though API can also be tested via "curl" command)
36
43
44
+
***Note regarding Webserver:***
45
+
46
+
As this project uses OAuth2 server, for smooth results, Apache webserver is highly recommended. You may want to create a site, say http://auth.dev, for it. Please refere to section **"Configuring Apache"** below for an example implementation.
47
+
48
+
However, if you wish to use php local dev server, you will need to start two instances of php local dev server at two different ports (say 8000 and 8080) in two separate terminal windows/tabs, section **"Use this Package"**, and replace oauth urls accordingly in Step 2 below. This is necessary as php local dev server is a simple single threaded web server and oAuth server needs to work on more than one process simultaneously. Using a single local dev server severly hampers this and blocks execution.
49
+
37
50
**Step 1 - Clone the project:**
38
51
39
52
Git clone this project from Github to a web folder, say auth, via
@@ -43,19 +56,37 @@ This is an example project, ready to use. This project is using below Symfony Bu
43
56
cd /path/to/auth
44
57
composer install
45
58
46
-
**Step 2 - Create Database tables**
59
+
**Step 2 - Replace parameter values in parameters.yml**
If you are using php local dev server, assuming you will be using http://127.0.0.1:8000 for browser use, above endpoint will become something like this:
If you are using php local dev server, please start the server at two different ports (say 8000 and 8080) in two terminal windows as below:
74
179
75
-
You will need to start the server before you can use this package:
180
+
In first terminal window,
76
181
77
182
cd /path/to/auth
78
-
php app/console server:run
183
+
php app/console server:run 127.0.0.1:8000
79
184
80
-
**Note: This project implements FOSRestBundle API versioing system via custom header "X-Accept-Version". Currently, the running API version is 1.0.**
185
+
In second terminal window,
186
+
187
+
cd /path/to/auth
188
+
php app/console server:run 127.0.0.1:8080
189
+
190
+
You may also need to configure parameters.yml accordingly. Then in a browser, you may use http://127.0.0.1:8000 to run this package.
191
+
192
+
Alternatively, if you have successfully configured Apache2, then modify parameters.yml accordingly can start using the package vide say, http://auth.dev.
81
193
82
194
#### 1. Test API
83
195
@@ -101,7 +213,16 @@ Separate sample Github repos are available for iPhone and Android Mobile Clients
101
213
102
214
In a browser, goto the package site by http://127.0.0.1:8000. This is the Backend Administration tool and can be plugged into any User App easily. It is a simple page. The options are self explanatory.
103
215
104
-
The salient features of the Backend are:
105
-
* The Backend is internationalization enabled. It currently supports English, French and Hindi.
106
-
* Options have been provided to pick desired front-end theme for the Backend. The choices available are - Bootstrap, Materialize and Skeleton. **To change the theme, modify key "fronend_theme" in parameters.yml accordingly.** However, the design is open-ended and you may add your preferred theme easily. Please also note that theming has only been provided for base and nav. Other top level stuff is using bootstrap, you can theme as per your choice using base theme.
107
-
* The Web user management pages are coming directly from FOSUserBundle views. You may override these pages, per your need.
216
+
#### 4. Troubleshooting
217
+
218
+
Sometimes, you may run into permission issues. You may try below commands, single or in combination:
0 commit comments