Skip to content

Commit fab85ab

Browse files
Docs
1 parent 17966a5 commit fab85ab

File tree

1 file changed

+27
-5
lines changed

1 file changed

+27
-5
lines changed

README.md

+27-5
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,12 @@
77
3. Django Rest Framework
88
4. Django Channels
99
5. Redis
10+
6. Heroku
11+
7. Postgresql
1012

13+
**Live server link**
1114

15+
https://django-chat-api.herokuapp.com/
1216

1317
**Features**
1418

@@ -19,16 +23,34 @@
1923
5. Paginated messages
2024
6. Custom User Model
2125

22-
**Database Design**
23-
24-
![alt text](https://github.com/khan-asfi-reza/ChatAPI/blob/master/Media/design.png?raw=true)
2526

2627
**Commands**
2728

2829
`python manage.py createsuperuser` - To create superuser
2930

30-
`python manage.py collectstatic`
31+
`python manage.py collectstatic` - Collects Static
3132

3233
`python manage.py runserver`
3334

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)

0 commit comments

Comments
 (0)