Skip to content

Latest commit

 

History

History
39 lines (34 loc) · 1.33 KB

README.md

File metadata and controls

39 lines (34 loc) · 1.33 KB

triplogrestjango

This is simple project build using Django 2.2 and Django Rest Framework. This example will create simple API service and desktop class app using Tkinter as CMS and using JS framework using react, socket-io and nodejs as frontend to display 'realtime' update from the server without page reload.

Screenshot

Triplog App

Requirements

Install and Run

Django + djangorestframework

  • Create virtual environment
  • Clone repo to local development
  • Switch to virtual environment (workon )
  • Install requirements (pip install -r requirements.txt)
  • Migrate database (python manage.py migrations)
  • Create superuser (python manage.py createsuperuser)
  • Run local webserver (python manage.py runserver)
  • Access API root page (http://127.0.0.1/api)
  • Access admin page (http://127.0.0.1/admin)

Triplog App

  • Run "python triplogapp.py"
  • Login with created admin account

Server (frontend/server)

  • Run "npm install"
  • Run "node App.js"

Client (frontend/client)

  • Run "npm install"
  • Run "npm start"