Skip to content

phprn/todolist-backend

Repository files navigation

Especificação da API

Primeiros passos

$ composer create-project todolist-backend

Adicionar as seguntes linhas no phpunit.xml após o SESSION_DRIVER

<server name="DB_CONNECTION" value="sqlite"/>
<server name="DB_DATABASE" value=":memory:"/>

Executando os testes

php vendor/bin/phpunit

Instalando o projeto

composer install --prefer-dist
cp .env.example .env
$ vim .env

DB_CONNECTION=sqlite
#DB_HOST=127.0.0.1
#DB_PORT=3306
#DB_DATABASE=laravel
#DB_USERNAME=root
#DB_PASSWORD=

#closevim
touch database/database.sqlite

Executando o projeto

php artisan serve --port=8080

No docker

cp .env.example .env
$ vim .env

DB_CONNECTION=sqlite
#DB_HOST=127.0.0.1
#DB_PORT=3306
#DB_DATABASE=laravel
#DB_USERNAME=root
#DB_PASSWORD=

#closevim
touch database/database.sqlite

docker build -t todolist .

docker run -p 8080:8080 todolist

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published