File tree 1 file changed +27
-5
lines changed
1 file changed +27
-5
lines changed Original file line number Diff line number Diff line change 7
7
3 . Django Rest Framework
8
8
4 . Django Channels
9
9
5 . Redis
10
+ 6 . Heroku
11
+ 7 . Postgresql
10
12
13
+ ** Live server link**
11
14
15
+ https://django-chat-api.herokuapp.com/
12
16
13
17
** Features**
14
18
19
23
5 . Paginated messages
20
24
6 . Custom User Model
21
25
22
- ** Database Design**
23
-
24
- ![ alt text] ( https://github.com/khan-asfi-reza/ChatAPI/blob/master/Media/design.png?raw=true )
25
26
26
27
** Commands**
27
28
28
29
` python manage.py createsuperuser ` - To create superuser
29
30
30
- ` python manage.py collectstatic `
31
+ ` python manage.py collectstatic ` - Collects Static
31
32
32
33
` python manage.py runserver `
33
34
34
- _ NB: Currently this application does not have any frontend service to demonstrate_
35
+ ** How to run on heroku**
36
+
37
+ 1 . Login to your heroku dashboard and create a Heroku App
38
+ 2 . Payment verify your account in order to use addons
39
+ 3 . Download and install heroku cli
40
+ 4 . Open terminal in the working directory and run the following commands in your terminal
41
+ 5 . Run ` heroku login ` , this will open a tab in your browser, click login
42
+ 6 . Run ` heroku git:remote -a {your-app-name} `
43
+ 7 . Run ` heroku addons:create heroku-postgresql:<PLAN_NAME> ` -> if you want to buy any other plan
44
+ 8 . Run ` heroku addons:create heroku-redis `
45
+ 9 . Run ` heroku config:set SECRET_KEY="YOUR_SECRET_KEY" `
46
+ 10 . Run ` heroku config:set FIELD_ENCRYPTION_KEYS="FIELD_ENCRYPTION_KEYS" `
47
+ 11 . Set database url in django settings
48
+ 12 . Run ` git add . `
49
+ 13 . Run ` git commit -m"Application setup" `
50
+ 14 . Run ` git push heroku master `
51
+ 15 . Run ` heroku run python manage.py migrate `
52
+
53
+
54
+ ** Database Design**
55
+
56
+ ![ alt text] ( https://github.com/khan-asfi-reza/ChatAPI/blob/master/Media/design.png?raw=true )
You can’t perform that action at this time.
0 commit comments