cp example.env .env
.env
HOST=http://localhost:8080
.env
...
HOST=localhost
PORT=8080
PUBLIC_URL=http://localhost:8080
...
[email protected]
EMAILER_OPTIONS_HOST=localhost
EMAILER_OPTIONS_PORT=1025
EMAILER_OPTIONS_IGNORE_TLS=true
EMAILER_OPTIONS_SECURE=false
...
# Disable rate limiting for testing
RATE_LIMITING_GET_INTERVAL=-1
RATE_LIMITING_PUT_INTERVAL=-1
RATE_LIMITING_POST_INTERVAL=-1
RATE_LIMITING_DELETE_INTERVAL=-1
yarn run test
The tests assume that the server starts off clean, with just an admin account
seeded. Admin account should have password password
Example:
-
(Re)create the Postgres database
-
Run migrations
-
Start the epochtalk server to seed the admin role
-
Create admin user
{ username: 'admin', password: 'password', ... }
-
Run tests