Skip to content

asmundstavdahl/kodeklubben-hjemmeside

 
 

Repository files navigation

Set up development environment

Requirements

  • PHP version >= 7.2
    • extension=mbstring
    • extension=pdo_sqlite
    • date.timezone = Europe/Oslo
  • 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

Configuring your IDE

Eclipse PDT

Fix source paths:

  1. Project properties → PHP → Build Path:
  • remove everything
  • add app, src, vendor
  • Apply
  1. Right click vendor and app → Use As Library Folder

About

Hjemmeside med påmeldingssystem for kodeklubber

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 59.1%
  • CSS 19.9%
  • HTML 17.1%
  • JavaScript 3.8%
  • Other 0.1%