Skip to content

enniomara/EITF05-WebShop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EITF05-WebShop

Course page: https://www.eit.lth.se/index.php?ciuid=1151&coursepage=7434

Code structure

  • server - contains configuration files for the webserver
  • src - contains the php code used in this project

Getting started

Via Docker

First of all make sure Docker and Docker-Compose are installed in your system.

Docker now requires an account to download, so if you don't want to create an account, use one of the accounts listed here.

Before proceeding with running the webserver, you need to set up certificates for the ssl connection. The script has been retrieved from here.

openssl req -x509 -out server/ssl.crt -keyout server/ssl.key \
  -newkey rsa:2048 -nodes -sha256 \
  -subj '/CN=localhost' -extensions EXT -config <( \
   printf "[dn]\nCN=localhost\n[req]\ndistinguished_name = dn\n[EXT]\nsubjectAltName=DNS:localhost\nkeyUsage=digitalSignature\nextendedKeyUsage=serverAuth")

To run the containers run the following on the folder where docker-compose.yml is located:

$ docker-compose up

Tests

The tests available can be run by running the runTests script.

$ ./runTests.sh

Other methods

An alternative to docker are stacks like WAMP, MAMP, or even installinng the services separately.

Make sure the installed php version is 7.2. Then make sure Apache runs with the server/httpd.conf configuration and PHP runs with the server/php.ini configuration stored in this repository.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages