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. Preview project.
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
-
Fork the repository.
-
Don’t forget to add tests.
-
Submit a pull request.
MIT License.