Skip to content

intusmortius/diploma

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Total Downloads Latest Stable Version License

diploma

About

Internet platform for the organization of remote work of students and graduates of the Department of Informatics.

Installation and using

This project provides you a environment without requiring you to install PHP, a web server, and any other server software on your local machine. For this, it requires Docker and Docker Compose.

  1. Install docker and docker-compose;
  2. Clone this project and then cd to the project folder;
  3. Run the initial build of the environment:
docker-compose build
  1. Install all composer and npm dependencies:
docker-compose run --rm composer i
docker-compose run --rm npm i
  1. Run the application using the command:
docker-compose up -d --build nginx phpmyadmin
  1. Create your own .env file by copying .env.example:
cp src/.env.example src/.env
  1. Generate the unique application key:
docker-compose run --rm artisan key:generate
  1. Now create the database:
docker-compose run --rm artisan db:create
  1. Then run migrations and seeds, which will create the necessary db data:
docker-compose run --rm artisan migrate
  1. Create a symlink for storing public data:
docker-compose run --rm artisan storage:link
  1. You've done! Main page is available on http://localhost, phpMyAdmin - http://localhost:3309

Other

If necessary, you can independently use composer, artisan or npm with the following commands:

docker-compose run --rm composer ...
docker-compose run --rm artisan ...
docker-compose run --rm npm ...

License

This project is licensed under the GPL-3.0 License.

Credits

andinoriel - laravel docker containerization