Projects
/
nettsiden-old
Archived
8
0
Fork 0
Kildekoden bak https://www.pvv.ntnu.no/
This repository has been archived on 2024-07-04. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
Peder Bergebakken Sundt ecf40334e4 Update dependencies 2021-08-11 22:29:06 +02:00
dist Whoops again 2018-08-24 13:24:42 +02:00
gammel dokumentasjon Added documentation from outdated repo. Covers alot of the wishes for the new website for the uninformed. 2016-08-29 19:46:52 +02:00
inc WIP: Fikset typo i include 2021-03-16 21:09:28 +01:00
lib Usergroup system 2017-11-11 17:00:08 +01:00
src WIP: driftkveld i kalenderen 2021-03-16 20:26:38 +01:00
www WIP: driftkveld i kalenderen 2021-03-16 20:26:38 +01:00
.gitignore Add dataporten config 2017-11-11 21:57:17 +01:00
.gitmodules Update OAuth2 client library 2017-11-11 15:37:13 +01:00
Dockerfile Add dockerfile for local development 2021-08-11 22:28:48 +02:00
README.md Add dockerfile for local development 2021-08-11 22:28:48 +02:00
composer.json Switch to useing markdown for user formatted text 2018-08-12 03:52:55 +02:00
composer.lock Update dependencies 2021-08-11 22:29:06 +02:00
dev.bat Updated navbar, added aktiviteter, deleted soek, made the ticker into an include 2016-08-30 18:13:31 +02:00
dev.sh Add dockerfile for local development 2021-08-11 22:28:48 +02:00
docker-compose.yaml Add dockerfile for local development 2021-08-11 22:28:48 +02:00

README.md

Programvareverkstedet nettside

A website created with the latest and greatest web technologies. May contain blackjack and other things one tends to include in awesome projects.

Installation

git clone --recursive https://github.com/Programvareverkstedet/nettsiden.git

Put it in a folder your webserver can find.

Development setup

Make sure you have sqlite3 and PHP installed, with pdo-sqlite module. These can be obtained from your package manager.

./dev.sh

On Windows, you have to perform a composer install manually beforehand. Make sure you have PHP and sqlite3 available in path:

dev.bat

Dependency management

dev.sh will ensure the git submodules have been pulled, then download the composer package manager to the php archive file composer.phar and run it. Composer will check for the php extension pdo_sqlite which must be enabled on your system. This usually includes installing a php-sqlite3 package and enabling it in /etc/php/php.ini:

[PHP]
extension=pdo_sqlite
extension=sqlite3
extension=ext-curl

Composer is used as such:

php composer.phar update
php composer.phar install

Docker

We provide a simple docker-compose setup for local development. First ensure that docker is running:

sudo systemctl start docker

then

DOCKER_USER=$(id -u):$(id -g) docker-compose up

Hosting