mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-02 22:17:39 +00:00
a5d1e54b56ec831fdfe53d75e4a45aa2aa5dcd85
This adds support for the other type of Mysql connection string specified by mysql async. Support for both strings and their respective options are necessary to support backwards compatibility of existing server configurations. This also adds support for jest & unit testing on the server/client and some unit tests for some of the connection string parsing. It runs these test and prettier in a pre-commit hook.
New Phone README TITLE
TODO
Production Server Installation
TODO
Development
This phone is a React project with a LUA client/server environment.
Prerequisites
The development environment assumes you have the following prerequisites:
- A windows environment and Powershell as your default terminal
- Git for windows installed
- LTS node.js installed
- yarn package manager installed (
npm install -g yarn) - A fivem environment that is set up according to the setting up a server instructions from the fivem documentation
Development Environment
Steps
- Clone the repo into your
server-data/resources/[local]folder - Go into the react project:
cd phone - Install node dependencies:
yarn install - Install
lint-stagedglobally `npm i -g lint-staged - Add the
new-phone-who-disapp to yourserver.cfg - Start your fivem server
Development iteration cycle:
- If iterating on client/server LUA make your change and then
restart new-phone-who-disin the fivem server terminal - If iteration on UI changes run the project with
yarn watchwhich will monitor the JavaScript project and rebuild when you make code changes and thenrestart new-phone-who-disafter making your change - Avoid commiting
index.htmlas the development version overrides the production version
Description
NPWD is a FiveM phone resource written entirely in TypeScript and React. It is currently a WIP and is not ready for production use.
10 MiB
0 Stars
1 Watchers
0 Forks
Languages
TypeScript
97.8%
JavaScript
1.2%
CSS
0.5%
Lua
0.4%