-
Notifications
You must be signed in to change notification settings - Fork 3
Development Setup
7sempra edited this page Apr 30, 2023
·
16 revisions
Follow these instructions if you want to start developing the roster.
- Install the "current" version of Node.js and Yarn classic.
- Install NPM packages:
$ cd <project root>
$ yarn install
If you are on windows, make sure to install the windows build tools for yarn either as prompted by the installer or with yarn global add windows-build-tools
from an administrator shell terminal.
Follow the Postgres installation instructions.
- Make a copy of
env.sample
and rename it to.env
- Set
SSO_CLIENT_ID=c8567d939b65494d9a9f0caa97789c39
- Set
SSO_SECRET_KEY=JaEeWZxu7T75tCWs3TdIpIe7GfkdO7DRUB6wfS49
- Modify
DATABASE_URL
to be of the formpostgres://<username>@localhost:<port>/eve_roster
.<port>
is probably 5432.<username>
is probably your local username on the system.
- Comment out the
DATABASE_URL
line. - Add
DATABASE_HOST=localhost
- Add
DATABASE_USER=postgres
- Add
DATABASE_NAME=eve_roster
- Add
DATABASE_PASS="secret"
(where the password is what you configured when setting up Postgres).
- In a separate terminal, compile the server:
$ yarn watch-server
- Back in your original terminal, initialize the database tables:
$ yarn updatedb
- Start the server:
$ yarn start
- Load up the site at http://localhost:8081
- Log in with one of your EVE characters. This account will be marked as an administrator.
- Navigate to
Admin > Setup
. Paste the following:
{
"siggy": {
"username": "your_username",
"password": "your_password"
},
"corporations": [
{
"id": 98477920,
"membership": "full",
"titles": {
"Demi-dog": "admin",
"Junior SOUND FC": "provisional_member",
"Official SOUND FC": "full_member",
"Staff": "admin"
}
},
{
"id": 98240827,
"membership": "affiliated",
"titles": {}
},
{
"id": 98465171,
"membership": "affiliated",
"titles": {}
},
{
"id": 98237970,
"membership": "affiliated",
"titles": {}
}
]
}
- Note that unless you own a character that is a Director of a corporation, roster sync will fail for that corporation. This may not matter, depending on what you're working on. If you need to test roster sync, hit up staff to make you a Director of Never Bend the Deadline (98237970).
- If you want to work on the SRP system, enable "Track SRP" and select a sane date to start from (past couple months should be fine).
- Navigate to
Admin > Tasks
. RunUpdate SDE
. - If you have Director privs on any corporation, consider running
Sync roster
andSync combat activity
. If you're working with SRP, runSync corp killmails
. These tasks will run automatically eventually, but many of them are on a 24-hour schedule.
It's strongly recommended that you configure and use VS Code when developing.
More helpful information in the workflow tips.