Skip to content

Stormbound-Games/stormbound-kitty

Stormbound-Kitty

Source code for Stormbound-Kitty.

Documentation

Technology stack

Development

The site runs with Next. Therefore, it uses Node.js (version 18). It is recommended to install nvm (or nvm-windows) to manage Node versions, but it’s not mandatory, as long as Node 18 is installed on the machine.

Then run the following commands to install the local dependencies and start the development server:

npm install
npm start

On a M1 machine, it maybe necessary to install a certain amount of libraries via Homebrew prior the first npm install in order to provide the necessary dependencies for node-canvas:

brew install pkg-config cairo pango libpng jpeg giflib librsvg

Tests

Unit tests are authored and ran with Jest, while end-to-end tests are executed via Cypress.

npm test
npx cypress open

CMS

To run the CMS locally, make sure you have Yarn installed then:

cd cms
yarn
npm start

For the preview to work locally, both the local website and the local CMS need to run with the same SANITY_STUDIO_PREVIEW_TOKEN environment variable. Set it in .env for the Next app, and run the npm start command of the CMS passing it the environment variable:

SANITY_STUDIO_PREVIEW_TOKEN=YourValueHere npm start

Acknowledgements

Powered by Vercel

Powered by Sanity

Powered by Cutt.ly

About

Stormbound-Kitty aims at providing tools and information about Stormbound-Games’ great game, and extending its players’ experience outside the game.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Languages