Das ist der Versuch, ein besseres Event Tool zu schreiben.
-
Install the dependencies with
npm install -
Set all Enviroment Variables specified in
.env.example -
Setup database and prisma client
npm run setup
-
Build the app:
npm run build
-
Start the remix app server:
npm start
-
Login with the default admin account (specified in
prisma/seed/data_for_production.json, email:password@n3qqCn38qmCTLw6, password:n3qqCn38qmCTLw6) -
Create new admin account and delete the default admin account
-
Install the dependencies with
npm install -
Setup database and prisma client
npm run setup
-
Start dev server:
npm run dev
-
Or start the dev server with e2e testing:
npm run test:e2e:dev
This starts your app in development mode, rebuilding assets on file changes.
The database seed script currently leaves the database empty, this needs to be fixed.
Ich verwende Remix als Fullstack-NodeJS Web-Framework.
Als start-template habe ich den Remix-Indie-Stack verwendet, und alles was nicht benötigt wird, entfernt (deploymentspezifische sachen etc.)
Enthalten ist noch:
- Production-ready SQLite Database
- Database ORM with Prisma
- Styling with Tailwind
- End-to-end testing with Cypress
- Local third party request mocking with MSW
- Unit testing with Vitest and Testing Library
- Code formatting with Prettier
- Linting with ESLint
- Static Types with TypeScript
Tests sind leider garnicht aktuell gerade!
Verwende ich für e2e testing. Die Tests liegen im /cypress/e2e Ordner.
In /cypress/support/commands.ts sind nützliche befehle ausgelagert wie zum Beispiel cy.login(email, password).
Vor den Tests muss die Datenbank in den entsprechenden State gebracht werden. Das geht in der CLI mit npm run db:seed-for-testing und in einem cypress test mit cy.seedDb(). Der State, der geladen wird, ist in /prisma/seed/data_for_testing.ts und wird vom seed script (/prisma/seed.ts) automatisch in die datenbank übertragen.