Giter VIP home page Giter VIP logo

gta-adminlte-django's Introduction

gta-adminlte-django

This project serves as an example for integrating adminlte into django and using a simple api (in this case a gameserver for Alt:V - a GTA Multiplayer Mod). It also adds the capability to control multiple servers, which makes it neat for Development, Testing and Production environments.

Usage

Requirements

  • Python 3.x
  • Prefer VS Code with the Extensions Beautify, Django and Python

Installation

  1. Run pip install -r requirements.txt
  2. Go to https://miniwebtool.com/django-secret-key-generator/ and generate a new django secret key. Copy paste this into the .env file and keep it secret
  3. Run python manage.py makemigrations
  4. Run python manage.py migrate to create the database structure. If you encounter an error, use python manage.py migrate --run-syncdb
  5. Run python manage.py runserver (CTRL+SHIFT+B if you have VSCode settings)
  6. Open browser at http://127.0.0.1:8000

You should see this

django_startup

Setup Administration

  1. Stop server if necessary
  2. Run python manage.py createsuperuser to create an admin account
  3. Restart server, you can now login using the created admin account

Setup Gameserver

The following steps refer to the example using the Game Server API (see https://github.com/riffy/altv-adminpanel-api)

  1. Login and click Admin in the top
  2. Click Add to the Gameservers
  3. Fill out the form with information from the Alt:V gameserver data. If the Django server and Gameserver are running on the same ip/environment you can use localhost
  4. Click Save and head back to the main site by clicking VIEW SITE in the top right. If you encounter an error during adding gameserver like no such table, stop server and run python manage.py migrate --run-syncdb
  5. The server should now be selectable in the left sidebar

django_serverselect

Game Server API

For the Gameserver API, please look at my other repository https://github.com/riffy/altv-adminpanel-api

If you run the ALT:V server with the module from the api repo and have everything configured correctly you should see the online status

server_status

Upcoming Features

Dashboard

  • Finalize Dashboard

Server

  • Basic Server Statistics
  • Basic Server Config

Players

  • Player List (alt:V id, social-id, name, online since, )
  • Player Actions (kick with reason)
  • Player Map

gta-adminlte-django's People

Contributors

riffy avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

gta-adminlte-django's Issues

invalid syntax

I have an error on execute python manage.py makemigrations

File "manage.py", line 17
) from exc
^
SyntaxError: invalid syntax

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.