Skip to content

paul-goblin/mathebau-events

Repository files navigation

Mathebau Events

Das ist der Versuch, ein besseres Event Tool zu schreiben.

Deployment

  • 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

Development

  • 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.

Verwendete Technologien

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:

Cypress

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published