Skip to content

luddekn/cstrack

Repository files navigation

NodeJS ExpressJS MySQL Sequelize Bootstrap Docker


Simple web interface for keeping track of CS2 item investments.


Installation

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.

Step 1: Configure the .env File

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.

Step 2: Database Creation

First, create the database in MySQL. Set its name as the value of DB_NAME in the .env file.

CREATE DATABASE cstrack;

Step 3: Run the Application with Docker

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:latest

Now you can visit http://localhost:3000/

About

Investment tracker for CS2 items created with ExpressJS

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published