Files
new-phone-who-dis/README.md
T

1.5 KiB

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:

  1. A windows environment and Powershell as your default terminal
  2. Git for windows installed
  3. LTS node.js installed
  4. yarn package manager installed (npm install -g yarn)
  5. A fivem environment that is set up according to the setting up a server instructions from the fivem documentation

Development Environment

Steps

  1. Clone the repo into your server-data/resources/[local] folder
  2. Go into the react project: cd phone
  3. Install node dependencies: yarn install
  4. Install lint-staged globally `npm i -g lint-staged
  5. Add the new-phone-who-dis app to your server.cfg
  6. Start your fivem server

Development iteration cycle:

  • If iterating on client/server LUA make your change and then restart new-phone-who-dis in the fivem server terminal
  • If iteration on UI changes run the project with yarn watch which will monitor the JavaScript project and rebuild when you make code changes and then restart new-phone-who-dis after making your change
  • Avoid commiting index.html as the development version overrides the production version