rstruthers1 / hacktank

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About


Languages

Language:CSS 73.7%Language:JavaScript 23.4%Language:EJS 2.1%Language:HTML 0.9%Language:Shell 0.0%Language:Procfile 0.0%