mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-03-21 18:04:39 -05:00
Competitive Splatoon Platform
| .github | ||
| app | ||
| cypress | ||
| prisma | ||
| public | ||
| scripts | ||
| server | ||
| .env.example | ||
| .eslintrc.js | ||
| .gitignore | ||
| .nvmrc | ||
| .prettierignore | ||
| .stylelintrc.json | ||
| cypress.json | ||
| LICENSE | ||
| openskill.d.ts | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| remix.config.js | ||
| remix.env.d.ts | ||
| tsconfig.json | ||
| window.d.ts | ||
Note: This is the WIP Splatoon 3 version of the site. To see the current live version checkout the main branch
Running locally
Prerequisites: nvm
- Use
nvm useto switch to the correct Node version. - Run
npm ito install the dependencies. - Make a copy of
.env.examplethat's called.envand fill it with values.
- You can check Prisma's guide on how to get PostgreSQL 14 set up and running locally.
- Run
npm run migration:apply:devto set up the tables of your database. - Run
npm run seedto seed the database with some test data.
- Run
npm run devto run both the server and frontend.
File structure
sendou.ink/
├── app/
│ ├── components/ -- Components shared between many routes
│ ├── core/ -- Core business logic
│ ├── hooks/ -- React hooks
│ ├── models/ -- Calls to database
│ ├── routes/ -- Routes see: https://remix.run/docs/en/v1/guides/routing
│ ├── styles/ -- All .css files of the project for styling
│ ├── utils/ -- Random helper functions used in many places
│ └── constants.ts -- Global constants of the projects
├── cypress/ -- see: https://docs.cypress.io/guides/core-concepts/writing-and-organizing-tests#Folder-structure
├── prisma/ -- Prisma related files
│ ├── migrations/ -- Database migrations via Prisma Migrate
│ ├── seed/ -- Seeding logic for tests and development
│ ├── client.ts -- Global import of the Prisma object
│ └── schema.prisma -- Database table schema
├── public/ -- Images, built assets etc. static files to be served as is
└── server/ -- Express.js server-side logic that is not handled in Remix e.g. auth
Seeding script variations
You can give a variation as a flag to the seeding script changing what exactly is put in the database. For example npm run seed -- -v=check-in seeds the database with a variation where check-in is in progress.
Commands
Convert .png to .webp
cwebp -q 80 image.png -o image.webp