# clone the repository
git clone git@github.com:otherplane/wittypixels.git
# cd into the cloned repository
cd wittypixels
# install application dependencies
pnpm install
# launch development UI
cd packages/ui
touch .env
# fullfill the .env file
pnpm dev
# launch development UI
cd packages/ui
touch .env
# fullfill the .env file
pnpm dev
Repair lint errors with (this operation modifies your files!) pnpm lint
The environment variables needed to run the API test are in .env.test. To be able to run the tests you need to add this two environment variables:
MONGO_URI=your_mongo_uri
MONGO_INITDB_DATABASE=your_mongo_db_name
After that, you can run the following command to run the test in all packages
# run tests
pnpm test
Currently, the database is being cleaned and the API being started before running every e2e test. The logic to do that was previously in beforeEach
and beforeAll
hooks but was moved into every test to be able to debug easily while we solve the issue that causes jest.timeouts errors.
The implementation of the smart contracts for this game is located in witty-pixels-contracts