mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
updates to readme, updating development workflow
This commit is contained in:
1 parent
c8fd806d57
commit
04473f0e14
5 files changed
+289
-195
No files matched your search
@@ -0,0 +1,34 @@
|
||||
# New Phone README TITLE
|
||||
|
||||
TODO
|
||||
|
||||
## Production Server Installation
|
||||
|
||||
TODO
|
||||
|
||||
## Development
|
||||
|
||||
This phone is a [React](https://reactjs.org/) 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
|
||||
1. [Git for windows](https://git-scm.com/download/win) installed
|
||||
1. [LTS node.js](https://nodejs.org/en/about/releases/) installed
|
||||
1. [yarn](https://yarnpkg.com/) package manager installed (`npm install -g yarn`)
|
||||
1. A fivem environment that is set up according to the [setting up a server instructions](https://docs.fivem.net/docs/server-manual/setting-up-a-server/) from the fivem documentation
|
||||
|
||||
### Development Environment
|
||||
|
||||
1. Clone the repo into your `server-data/resources/[local]` folder
|
||||
1. Go into the react project: `cd phone`
|
||||
1. Install node dependencies: `yarn install`
|
||||
2. Install `lint-staged` globally `npm i -g lint-staged
|
||||
3. Add the `new-phone-who-dis` app to your `server.cfg`
|
||||
4. 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
|
||||
Reference in new issue
Block a user