| author | ymh <ymh.work@gmail.com> |
| Wed, 14 Jun 2017 18:41:43 +0200 | |
| changeset 37 | 5ce9218fb3e0 |
| parent 36 | 36210c4f019f |
| permissions | -rw-r--r-- |
| 24 | 1 |
# IRINOTES backoffice |
2 |
||
3 |
Back office for the IRINOTES application |
|
4 |
||
5 |
## Installation |
|
6 |
||
7 |
Please follow the command below to bootstrap the project |
|
8 |
||
9 |
```shell |
|
10 |
$ mkdir -p run/{db,log,web}
|
|
11 |
$ mkdir -p run/web/{media,static}
|
|
12 |
$ cp .env.tmpl .env |
|
13 |
$ vi .env |
|
|
36
36210c4f019f
reorganize urls and add user management api urls
ymh <ymh.work@gmail.com>
parents:
32
diff
changeset
|
14 |
$ mkvirtualenv -p `which python3` irinotes |
|
36210c4f019f
reorganize urls and add user management api urls
ymh <ymh.work@gmail.com>
parents:
32
diff
changeset
|
15 |
$ cd requirements |
|
36210c4f019f
reorganize urls and add user management api urls
ymh <ymh.work@gmail.com>
parents:
32
diff
changeset
|
16 |
$ pip install -r dev.txt |
|
36210c4f019f
reorganize urls and add user management api urls
ymh <ymh.work@gmail.com>
parents:
32
diff
changeset
|
17 |
$ cd .. |
| 24 | 18 |
$ python manage.py migrate |
19 |
$ python manage.py collectstatic |
|
20 |
$ python manage.py createsuperuser |
|
21 |
$ python manage.py runserver |
|
22 |
||
23 |
``` |
|
24 |
||
25 |
You can now visit the following url in your browser <http://127.0.0.1:8000> . |
|
26 |
||
27 |
Admin interface is at <http://127.0.0.1:8000/admin> |
|
28 |
||
29 |
## Usage |
|
30 |
||
| 37 | 31 |
The following library have been used: |
32 |
http://django-rest-auth.readthedocs.io/en/latest/index.html |
|
33 |
https://django-allauth.readthedocs.io/en/latest/ |
|
34 |
http://getblimp.github.io/django-rest-framework-jwt/ |
|
35 |
||
36 |
Lancement serveur smtp python: |
|
37 |
sudo python3 -m smtpd -c DebuggingServer -n localhost:25 |
|
| 24 | 38 |
|
39 |
## History |
|
40 |
||
41 |
TODO: Write history |
|
42 |
||
43 |
## Credits |
|
44 |
||
45 |
TODO: Write credits |
|
46 |
||
47 |
## License |
|
48 |
||
49 |
TODO: Write license |