LINKed
Fundamentals of Information Systems Group Project
Project setup:
WITH DOCKER:
-
Install docker-compose
-
Clone the project with
git clone https://github.com/EdotJ/LINKed/
and make it your working directory -
Copy
docker-compose.yml.dist
, name itdocker-compose.yml
and copyapi/.env.example
with the nameapi/.env
-
You'll need to generate a key for the Laravel application. If you have Composer, just run
php artisan key:generate
in theapi
folder. If not continue. If you generated the key, go to step 9 -
Run
docker-compose up
-
Run
docker ps
to find out the container name. Search for containerPROJECTNAME_php_1
-
Generate key in the container with
docker exec -it PROJECTNAME_php_1 php artisan key:generate
-
Restart
docker-compose
if needed. -
Access the project through
localhost
WITHOUT DOCKER:
- Make sure you have
php
,composer
,node
,npm
installed locally. - Set up a MySQL (MariaDB) database for the project. WINDOWS | UBUNTU
- Clone the project with
git clone https://github.com/EdotJ/LINKed/
and makeapi
your working directory - Make sure database settings in
.env
are the same as the settings you configured when setting up the database. - Run
composer install
to install PHP dependencies. - Run
npm install
to install NPM (Node Package Manager) dependencies. - Run
npm run dev && npm run watch
to compile assets and run asset watching for recompilation on edit. (SASS/JS) - Run
php artisan serve
and click thelocalhost
link provided in the output. You should see the homepage.
NOTES:
- If Laravel can't connect to the database, check the
.env
database settings. They should be the same as indocker-compose.yml
.