Skip to content
stable
Go to file
Code
This branch is 53 commits ahead of kodeklubben:master.

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
app
 
 
 
 
web
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

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

Packages

No packages published
You can’t perform that action at this time.