Skip to content
This repository has been archived by the owner on Jan 7, 2025. It is now read-only.

Latest commit

 

History

History
76 lines (51 loc) · 1.46 KB

README.md

File metadata and controls

76 lines (51 loc) · 1.46 KB

Savsa

A fun twist of the popular web game genre "Guess the rank" where you guess the age of a steam account based on level, recent games and more. As per Steam's Web API Terms of Use, the sample profiles are added with explicit permission from all parties involved.

Getting started

Docker

Clone the repository:

git clone https://github.com/HarbourHeading/savsa

Change directory to the project's root directory:

cd savsa

Rename .env.example to .env and add credentials:

mv .env.example .env

Create a /data/docker-entrypoint-initdb.d/ directory with a mongo-init.js file inside:

mkdir -p -- data/docker-entrypoint-initdb.d ; cd data/docker-entrypoint-initdb.d ; vim mongo-init.js

Edit mongo-init.js, and copy the data below:

db = db.getSiblingDB(dbName);

// Create a database user. Edit credentials to fit your own.
db.createUser(
    {
        user: user,
        pwd: password,
        roles: [
            {
                role: "readWrite",
                db: dbName
            }
        ]
    }
)

// Create MongoDB collection to store steamIDs
db.createCollection("profiles")

// 2 Sample steamID values
db.profiles.insertMany([{steamid: "76561198247488342"}, {steamid: "76561198987276257"}])

Run docker-compose.yml:

docker-compose up -d

Contributing

  • Fork the repository.

  • Don’t forget to add tests.

  • Submit a pull request.

License

MIT License.