Hjemmeside med påmeldingssystem for kodeklubber
Clone or download
Pull request Compare This branch is 46 commits ahead of kodeklubben:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
misc
src/AppBundle
web
.gitignore
.travis.yml
README.md
app.json
composer.json
composer.lock
composer.phar
deploy.md
gulpfile.js
package-lock.json
package.json
project-specification.pdf

README.md

Set up development environment

Requirements

  • PHP version >= 7.2
  • 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