This repository is for the community website ranalds.gift for Warhammer Vermintide 2. This website is for players to create, save and share their builds with other members of the community.
Below are instructions on how to setup the project for local development.
- Clone the dev branch of the repository
- Run "npm install" from the terminal
- Copy the "sample.env" and rename it to ".env"
- Run "npx supabase init" from the terminal
- Run "npx supabase start" from the terminal
- Take note of the status information, you will use it in the next section to setup the environment variables.
- Open the ".env" file in the root of the project
- Update the PUBLIC_SUPABASE_ANON_KEY with the key from your local supabase instance
- Update the PRIVATE_SUPABASE_SERVICE_ROLE_KEY with the key from your local supabase instance
- Update the PRIVATE_DATABASE_AUTHORIZATION_BYPASS_KEY to be any unique string, preferably some UUID
- Set the PRIVATE_INITIALIZE_DB flag in the ".env" file to "true"
- Run "npm run dev" from the terminal
- Open your local instance (default: http://localhost:5173)
- Set the PRIVATE_INITIALIZE_DB flag in the ".env" file to "false" once the database has been initialized