Hack Tank

Database

  • Uses MySQL
  • Dump of database is in ./dbscripts/hacktank.dump.sql

Running MySQL locally

  • Download MySQL server and install
  • create a database called hacktank.
  • Import the dump of the database into the hacktank database.
  • Create a file in the root directory called .env
  • Add the following environmental variable to the .env file:
HACKDB_URL=mysql://<user>:<password>@<host>:<port>/hacktank?ssl-mode=REQUIRED

DO NOT COMMIT THE .env FILE!

Run locally

The following command runs both the node server and react client.

npm run dev

Resources