Skip to content

kodeklubben/kodeklubben-hjemmeside

Repository files navigation

Set up development environment

Requirements

  • PHP version >= 7.0
  • Node version >= 4

UNIX:

npm run setup

Windows:

npm run setup:win

Start server on http://localhost:8000

npm start

Code style

Code style should follow a certain set of rules. Make sure your code adheres to these rules before opening a PR.

Fix style

Automatically fixes styling errors

UNIX/LINUX:

npm run -s cs

Windows:

npm run -s cs:win

Testing

Tests should be run before opening a PR.

UNIX/LINUX:

npm run test

Windows:

npm run test:win

Users

Username Password Role
participant@mail.no 1234 ROLE_PARTICIPANT
parent@mail.no 1234 ROLE_PARENT
tutor@mail.no 1234 ROLE_TUTOR
admin@mail.no 1234 ROLE_ADMIN

Build static files

When adding new images or other non-code files, you can run

npm run build

so that the files are put in the correct places. (this is automatically done when doing npm start)

Database

Reload database

npm run db:reload

Add new entities to the database

npm run db:update