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.
- AdonisJS
- SSR with AdonisJS (InertiaJS - React)
- UnoCSS
- Redis
- PostgreSQL
- Docker
- Clone the repository
- Run
pnpm install
- Copy
.env.example
to.env
and fill the variables - Run
docker-compose up -d
- Run
pnpm dev
- Run
pnpm jobs:run
- Access
http://localhost:3333
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,
});
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
To run the tests, you can use the following command:
pnpm test