Skip to content

Guess a random steam profile's years of service

License

Notifications You must be signed in to change notification settings

HarbourHeading/savsa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Savsa

project preview

Example image. Entire website not shown. Preview project.

Introduction

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.