Coder Social home page Coder Social logo

florianv85 / altv-typescript-react Goto Github PK

View Code? Open in Web Editor NEW

This project forked from stuyk/altv-typescript-react

1.0 0.0 0.0 28 KB

A Typescript Boilerplate for alt:V with simple setup and usage. Includes React with Vite.

JavaScript 48.23% TypeScript 37.13% HTML 2.32% CSS 12.33%

altv-typescript-react's Introduction

Typescript Boilerplate for alt:V with React - v5.0.1

Super Fast Compilation

๐Ÿ’ก Need a Roleplay Script? Try Athena!

Features

A simple Typescript Boilerplate that builds incredibly fast using the SWC Library.

  • Auto Refresh Server
  • Auto Compile TypeScript Files
  • Auto Download Resources
  • Single Resource Code Support
  • Fastest Auto Reconnect Time on Recompile
  • Compile Multiple Resources at Once
  • Built-in React for WebViews

Installation

Clone the Repository

Use the command below in any terminal, command prompt, etc.

git clone https://github.com/Stuyk/altv-typescript-react

Install the Repository

Use the command below in any terminal, command prompt, etc.

cd altv-typescript-react
npm install

Download Server Files

Use the command below in any terminal, command prompt, etc. This will download all necessary server files from an additional package used by this project.

npm run update

Start Production Server (Windows)

Run this command to run the server in production mode.

npm run windows

Start Production Server (Linux)

Run this command to run the server in production mode.

npm run linux

Start Developer Server

Run this command to run the server in development mode.

This will automatically reconnect your alt:V Client if you have debug mode turned on.

npm run dev

WebView Previews

If you need to modify the WebView and want to work out of the browser, use the following command.

npm run react-dev

End Server Runtime

Use the key combination ctrl + c to kill your server in your terminal, command prompt, etc.

How to Add Mods, and New Resources

Always add your already compiled resources & mods into the resources folder.

How to ignore specific resources from compiling

Add file name .nocompile to the resource folder you want to ignore from compiling.

altv-typescript-react's People

Contributors

florianv85 avatar stuyk avatar

Stargazers

 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.