Code Monkey home page Code Monkey logo

ucp's Introduction

User Control Panel - GTA SAMP

A small User Control Panel that enables the players to edit their in game data from website. Currently the UCP does not feature a lot, it only has a 3d vehicle editor which enables the players to see their in-game saved vehicle on the browser.

The front end is completely written in React.js and Three.js the backend is written in Express.js (I plan on switching it to a python based backend but not any sooner).

Backend Setup

The backend is completely written in one file server.js, if you want to tweak around the request and response functionality, that is the file you want to fiddle with. To run the backend you can simply type the following command in command prompt:

node server.js

However, before running the backend you will have to initialize the server configuration files. You can do that by simply running the command:

node server-init.js

This will create 2 basic configuration files and a configuration folder configuration in your root directory. The two files are:

mysql_conf.ini

This file contains the basic mysql credentials which the backend will require for communicating with the database.

creds_conf.ini

This file is an addon to the authentication layer as this file is responsible for maintaining the salt. Change it to the salt you have used in your PAWN script.

Frontend Setup

There isn't much about the frontend to setup however, you might have to get all the packages mentioned in the package.json before running a dev server or a build.

Done

That's it for the setup. Happy Coding!

ucp's People

Contributors

siddhshenoy avatar

Watchers

 avatar

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.