aboutsummaryrefslogtreecommitdiff
path: root/src/introduction/development.md
blob: b9f50b0e7e4f323bb5730ae285da825913dfaba5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Development

## Prerequisites
- [Rust](https://www.rust-lang.org/)
- [Worlds](http://archive.worlds.com/download.html)
- sqlx-cli

## Installing sqlx-cli
Once Rust is installed, run `cargo install sqlx-cli`.

## Setting up database
1. Navigate to the cloned instance of Whirl.
2. Create database file; `sqlx database create`.
3. Migrate database; `sqlx migrate run`.

## Overwriting WorldServer address
1. Navigate to your `/etc/hosts` file, on Windows this is usually located at
   `C:\Windows\System32\drivers\etc\hosts`.
2. Add these rules;
	```
	0.0.0.0				www.3dcd.com
	0.0.0.0				test.3dcd.com
	```