enisimsar / Laravel-First-Project-TODO-List

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Laravel First Project TODO List

This project is a simple TODO List in php laravel framework. This includes MySQL, MongoDB and Laravel Framework. "laravel" folder is obtained from this project

Requirements

Install w/ MySQL DB

  • $ sudo docker-compose up -d Installs MySQL, php and Laravel Framework to docker.
  • $ docker-compose build
  • $ sudo docker exec -it todo_list_app bash Connects the docker.

In Docker

  • $ composer install Installs required package.
  • $ chmod -R 777 storage Gives privilege to access logs.
  • $ php artisan key:generate Gives a key ("base64:Nd/kXnzZfPRhQV+ELuKdOuFc4DzFH99WQfNK2gKRm10="). Open /MySQL DB/laravel/.env and assign "APP_KEY=" field to this key.
  • $ php artisan migrate:refresh Creates the tasks table.

Install w/ MongoDB

  • $ sudo docker-compose up -d Installs MongoDB, php and Laravel Framework to docker.
  • $ docker-compose build
  • $ sudo docker exec -it todo_list_app bash Connects the docker.

In Docker

  • $ composer install Installs required package.
  • $ chmod -R 777 storage Gives privilege to access logs.
  • Uncomment the line that is last line of /MongoDB/laravel/config/app.php 'providers' variable.
Jenssegers\Mongodb\MongodbServiceProvider::class,
  • $ php artisan key:generate Gives a key ("base64:Nd/kXnzZfPRhQV+ELuKdOuFc4DzFH99WQfNK2gKRm10="). Open /MongoDB/laravel/.env and assign "APP_KEY=" field to this key.
  • $ php artisan migrate:refresh Creates the tasks table.

Now, you can access the website with localhost:80.

About


Languages

Language:PHP 88.6%Language:HTML 7.3%Language:JavaScript 1.4%Language:CSS 1.3%Language:Vue 0.7%Language:ApacheConf 0.7%