by: v4nz777
A web-based general application built using Django and Vue.js to help and automate most task in radio station
- Built using Django and the Django REST framework
- Utilizes a PostgreSQL database to store user data
- Includes functionality for user authentication and authorization using JWT tokens
- Using websocket to update see activites and updates in real time.
- Deployed with NGINX
- SSL/TLS Enabled at
192.168.1.77:443
using https for secure connection.
- Built using Vue.js and the Pinia library for state management
- Communicates with the backend API to retrieve and manipulate data
- Includes functionality for user authentication and authorization
- Clone the repository:
git clone https://github.com/v4nz777/station-django-vue.git
-
SSL Certificates are made for IP address
192.168.1.77
so make sure that your machine are using IPV4 192.168.1.77 . -
If you are using 192.168.1.77 already, skip this step, otherwise create a new SSL certificate using the steps below: Making SSL Certificate:
- navigate to folder
ssl
- Install openSSL in your machine: How to install openSSL
- Modify the
ssl.conf
file, set to your own IP address - Create new key and root certificate in terminal:
openssl req -x509 -newkey rsa:4096 -keyout rootCA.key -out rootCA.crt -days 99999 -config ssl.conf -nodes
- Create server certificate:
change the
/CN=192.168.1.77
with your own IP.openssl req -newkey rsa:4096 -keyout server.key -out server.csr -subj "/CN=192.168.1.77" -nodes
- Sign the certificate:
openssl x509 -req -in server.csr -CA rootCA.crt -CAkey rootCA.key -CAcreateserial -out server.crt -days 99999 -extfile ssl.conf -extensions req_ext
- You can see generated files crt,key etc.
- Copy the
server.crt
andserver.key
insidebackend
folder
- navigate to folder
-
Install the certificate to your device and to your clients' device the file
rootCA.crt
-
Make sure that your IP is DHCP reserved or STATIC.
-
Create
config.py
inside/backend/backend/
then configure the following settings insideconfig
file:SECRET_KEY
DATABASES
CHANNEL_LAYERS
SERVE_AT
default is192.168.1.77
-
Build using Docker:
docker-compose build
-
Run.
docker-compose up
The application should now be running at
https://192.168.1.77