__# Champions!
:^)
- Make a new folder called 'server'
- Make another folder in it called 'plugins'
- Drag the spigot jar from the libs folder to server
- Drag the protocolib jar from the libs folder to server/plugins
- Rename _build.gradle and change
System.getenv().get("testserver")
to the directory of the plugins folder - Open intelij, and you are all set!
- uhhhhhh
For whatever reason when it says Test events were not recieved
, do not be worried. It is working, the test will fail if the assertion fails.
You can run tests in two ways with selecting the test class and selecting the run test (the green arrow), or my favorite:
gradlew clean test
You can forgo the clean, but it's nice. However, if you do manage to fix this bug, it would be very nice to tell me (rain) because it's very annoying.
To run individuals tests:
gradlew test --tests <testname here>
See https://docs.gradle.org/current/userguide/command_line_interface.html for more reading.
- Install postgres + pgadmin4.
- Set your environment variables:
Make sure to restart your terminal.
setx PSQL_HOST localhost setx PSQL_PASS <pass> setx PSQL_PORT 5432 setx PSQL_USER postgres setx PSQL_DBNAME champions
- Open pgadmin, log in and create a new database named "champions".
- Run the test using
./gradlew clean test
to create the new dbs (See: com.podcrash.test.DatabaseLoginTest) - Run
./gradlew clean generateChampionsdatabaseJooqSchemaSource
- You should get new files on the directory build/generated-src/jooq
- Now you can reference said files! See the ChampionsKitTable class for examples!
- Learn PSQL
- Install redis (windows: https://github.com/microsoftarchive/redis/releases)
- Set your environment variables.
setx REDIS_HOST redis://127.0.0.1:6379 setx REDIS_PASS foobared
- Go to the directory where you installed it, and go to the config. Delete the '#' next to "requirepass".
- Run the redis server, using (windows: command prompt)
https://redis.io/topics/rediscli
redis-server ./redis.conf redis-cli - for commandline