forked from Hri7566/mpp-server-dev2
Update README.md
This commit is contained in:
parent
001512beb2
commit
3e0b70e4e7
49
README.md
49
README.md
|
@ -1,3 +1,52 @@
|
||||||
# mpp-server-dev2
|
# mpp-server-dev2
|
||||||
|
|
||||||
This is a new MPP server currently in development for [MPP.dev](https://www.multiplayerpiano.dev). The original server is old and it needs a new one.
|
This is a new MPP server currently in development for [MPP.dev](https://www.multiplayerpiano.dev). The original server is old and it needs a new one.
|
||||||
|
|
||||||
|
This server uses Bun.
|
||||||
|
|
||||||
|
The commit history includes BopItFreak's server because this server is (debatably) a heavy reimplementation of my fork of it.
|
||||||
|
|
||||||
|
## How to run
|
||||||
|
|
||||||
|
0. Install bun
|
||||||
|
|
||||||
|
```
|
||||||
|
$ curl -fsSL https://bun.sh/install | bash
|
||||||
|
```
|
||||||
|
|
||||||
|
1. Configure
|
||||||
|
|
||||||
|
- Copy environment variables
|
||||||
|
|
||||||
|
```
|
||||||
|
$ cp .env.template .env
|
||||||
|
```
|
||||||
|
|
||||||
|
Edit `.env` to your needs.
|
||||||
|
|
||||||
|
- Edit the files in the `config` folder to match your needs
|
||||||
|
|
||||||
|
2. Install packages
|
||||||
|
|
||||||
|
```
|
||||||
|
$ bun i
|
||||||
|
```
|
||||||
|
|
||||||
|
3. Setup database
|
||||||
|
|
||||||
|
```
|
||||||
|
$ bunx prisma generate
|
||||||
|
$ bunx prisma db push
|
||||||
|
```
|
||||||
|
|
||||||
|
4. Build
|
||||||
|
|
||||||
|
```
|
||||||
|
$ bun run build
|
||||||
|
```
|
||||||
|
|
||||||
|
5. Run
|
||||||
|
|
||||||
|
```
|
||||||
|
$ bun start
|
||||||
|
```
|
||||||
|
|
Loading…
Reference in New Issue