Simple web interface for keeping track of CS2 item investments.
Note
You need to set up a MySQL server for this application to work. You can easily create a MySQL database in the cloud using https://aiven.io/mysql
The MySQL database will store all the data, and the table will be created during the setup process.
Create the .env file, which will tell Sequelize how to connect to your MySQL server. Below is an example configuration:
DB_USERNAME="mysql-username"
DB_PASSWORD="mysql-password"
DB_NAME="cstrack"
DB_HOST="127.0.0.1"
DB_PORT=3306
DB_DIALECT=mysql
PORT=3000
STEAM_CURRENCY=1
Important
Remember to set the STEAM_CURRENCY, you can find a list of available currencies here.
First, create the database in MySQL. Set its name as the value of DB_NAME in the .env file.
CREATE DATABASE cstrack;Using Docker, run the following command. It will download the cstrack image and load the .env file created in #Step 1 into the container:
docker run -d --env-file .env -p 3000:3000 ludvikkristoffersen/cstrack:latestNow you can visit http://localhost:3000/