Skip to content

Commit c325c70

Browse files
README.md enhanced
1 parent 4dd0743 commit c325c70

File tree

1 file changed

+53
-48
lines changed

1 file changed

+53
-48
lines changed

README.md

Lines changed: 53 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@ As this project uses OAuth2 server, for smooth results, Apache webserver is high
5757
**Step 1 - Clone the project:**
5858

5959
Git clone this project from Github to a web folder, say auth, via
60-
git clone .... auth
60+
$ git clone .... auth
6161

6262
and run
63-
cd /path/to/auth
64-
composer install
63+
$ cd /path/to/auth
64+
$ composer install
6565

6666
**Step 2 - Replace parameter values in parameters.yml**
6767

@@ -83,24 +83,24 @@ As this project uses OAuth2 server, for smooth results, Apache webserver is high
8383

8484
**Step 3 - Create Database tables**
8585

86-
cd /path/to/auth
87-
php app/console doctrine:database:create
88-
php app/console doctrine:schema:create
86+
$ cd /path/to/auth
87+
$ php app/console doctrine:database:create
88+
$ php app/console doctrine:schema:create
8989

9090
**Step 4 - Create assets**
9191

92-
cd /path/to/auth
93-
php app/console assets:install
94-
php app/console assetic:dump
92+
$ cd /path/to/auth
93+
$ php app/console assets:install
94+
$ php app/console assetic:dump
9595

9696
**Step 5 - Create an Admin user**
9797

98-
cd /path/to/auth
99-
php app/console fos:user:create admin [email protected] password
98+
$ cd /path/to/auth
99+
$ php app/console fos:user:create admin [email protected] password
100100

101101
Make this user admin
102102

103-
php app/console fos:user:promote admin ROLE_ADMIN
103+
$ php app/console fos:user:promote admin ROLE_ADMIN
104104

105105
Now you are ready to use the Package!
106106

@@ -118,37 +118,37 @@ $ sudo cp sites-available/000-default.conf sites-available/auth.conf
118118
Via an editor, as superuser, copy/paste below section to sites-available/auth.conf:
119119

120120
```
121-
<VirtualHost *:80>
122-
# The ServerName directive sets the request scheme, hostname and port that
123-
# the server uses to identify itself. This is used when creating
124-
# redirection URLs. In the context of virtual hosts, the ServerName
125-
# specifies what hostname must appear in the request's Host: header to
126-
# match this virtual host. For the default virtual host (this file) this
127-
# value is not decisive as it is used as a last resort host regardless.
128-
# However, you must set it for any further virtual host explicitly.
129-
ServerName auth.dev
130-
131-
ServerAdmin webmaster@localhost
132-
DocumentRoot /var/www/html/authOauth/web
133-
134-
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
135-
# error, crit, alert, emerg.
136-
# It is also possible to configure the loglevel for particular
137-
# modules, e.g.
138-
#LogLevel info ssl:warn
139-
140-
ErrorLog ${APACHE_LOG_DIR}/error.log
141-
CustomLog ${APACHE_LOG_DIR}/access.log combined
142-
143-
# For most configuration files from conf-available/, which are
144-
# enabled or disabled at a global level, it is possible to
145-
# include a line for only one particular virtual host. For example the
146-
# following line enables the CGI configuration for this host only
147-
# after it has been globally disabled with "a2disconf".
148-
#Include conf-available/serve-cgi-bin.conf
149-
</VirtualHost>
150-
151-
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
121+
<VirtualHost *:80>
122+
# The ServerName directive sets the request scheme, hostname and port that
123+
# the server uses to identify itself. This is used when creating
124+
# redirection URLs. In the context of virtual hosts, the ServerName
125+
# specifies what hostname must appear in the request's Host: header to
126+
# match this virtual host. For the default virtual host (this file) this
127+
# value is not decisive as it is used as a last resort host regardless.
128+
# However, you must set it for any further virtual host explicitly.
129+
ServerName auth.dev
130+
131+
ServerAdmin webmaster@localhost
132+
DocumentRoot /var/www/html/authOauth/web
133+
134+
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
135+
# error, crit, alert, emerg.
136+
# It is also possible to configure the loglevel for particular
137+
# modules, e.g.
138+
#LogLevel info ssl:warn
139+
140+
ErrorLog ${APACHE_LOG_DIR}/error.log
141+
CustomLog ${APACHE_LOG_DIR}/access.log combined
142+
143+
# For most configuration files from conf-available/, which are
144+
# enabled or disabled at a global level, it is possible to
145+
# include a line for only one particular virtual host. For example the
146+
# following line enables the CGI configuration for this host only
147+
# after it has been globally disabled with "a2disconf".
148+
#Include conf-available/serve-cgi-bin.conf
149+
</VirtualHost>
150+
151+
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
152152
```
153153

154154
Via an editor, as superuser, modify /etc/hosts to include below line:
@@ -182,8 +182,9 @@ $ sudo chmod -R ogu+rwx app/cache app/logs web
182182
3. Backend Administration
183183

184184
```
185-
186-
Please refer to **Note regarding webserver** in [Requirements](#requirements) section. 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:
185+
Please refer to **Note regarding webserver** in [Requirements](#requirements) section.
186+
If you are using php local dev server, please start the server at two different ports
187+
(say 8000 and 8080) in two terminal windows as below:
187188
188189
In first terminal window,
189190
@@ -195,10 +196,11 @@ In second terminal window,
195196
cd /path/to/auth
196197
php app/console server:run 127.0.0.1:8080
197198
198-
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.
199-
200-
Alternatively, if you have successfully configured Apache2, then modify parameters.yml accordingly can start using the package vide say, http://auth.dev.
199+
You may also need to configure parameters.yml accordingly. Then in a browser, you may use
200+
http://127.0.0.1:8000 to run this package.
201201
202+
Alternatively, if you have successfully configured Apache2, then modify parameters.yml
203+
accordingly can start using the package vide say, http://auth.dev.
202204
```
203205

204206
#### 1. Test API
@@ -245,8 +247,11 @@ Here's the TODO list for the next release (**2.0**).
245247
* [ ] Refactoring the UserController to use API from AuthController instead using FOSUserBundle so that CRUD comes from a single source.
246248
* [ ] Add provision for admin to reset password for a user.
247249

250+
248251
# <a name="change-logs"></a>Change Logs
249252

253+
254+
250255
# <a name="contribution-guidelines"></a>Contribution Guidelines
251256

252257
Support follows PSR-2 PHP coding standards, and semantic versioning.

0 commit comments

Comments
 (0)