prisca-c / mind-reader

Website that allows users to play a mind reader game. The game is simple, one user have a word given and the other person have to guess the word using other words.
GNU Affero General Public License v3.0
0 stars 1 forks source link
adonisjs hacktoberfest react typescript unocss

Mind Reader Game

Description

Website that allows users to play a mind reader game.

The game is simple, one user have a word given and the other person have to guess the word using other words.

Technologies

How to run

  1. Clone the repository
  2. Run pnpm install
  3. Copy .env.example to .env and fill the variables
  4. Run docker-compose up -d
  5. Run pnpm dev
  6. Run pnpm jobs:run
  7. Access http://localhost:3333

Offline mode (without social login)

To bypass social login, you can set the BYPASS_LOGIN env variable to 1 in your .env file. This will allow you to login with a default user.

await this.userRepository.findOrCreate('random@user.com', {
  username: 'RandomUser',
  avatarUrl: null,
  providerId: 1,
});

Database

To run the migrations, you can use the following command:

node ace migration:run

To run the seeds, you can use the following command:

node ace db:seed

If you need to rollback the migrations, you can use the following command:

node ace migration:rollback --batch 0

Tests

To run the tests, you can use the following command:

pnpm test

Lint and format

To check the lint and format, you can use the following command:

biome check

To fix the lint and format, you can use the following command:

biome check --write