This is a bookmarks REST API built with Laravel. It allows you to perform various actions on bookmarks like creating a bookmark, marking a bookmark as favorite, archiving a bookmark, etc.
Requires PHP 8.1+
-
Clone this repository
git clone https://github.com/sissokho/bookmarks-api.git
-
Install composer dependencies
docker run --rm \ -u "$(id -u):$(id -g)" \ -v "$(pwd):/var/www/html" \ -w /var/www/html \ laravelsail/php81-composer:latest \ composer install --ignore-platform-reqs
-
Copy .env.example to .env file
cp .env.example .env
-
Set your
DB_HOST
environment variable within your.env
file tomysql
:DB_HOST=mysql
-
Start Sail
./vendor/bin/sail up # or you may start Sail in "detached" mode if you want to start all of the Docker containers in the background: ./vendor/bin/sail up -d
-
Generate app key
./vendor/bin/sail artisan key:generate
-
Run database migrations
./vendor/bin/sail artisan migrate
-
Clone this repository
git clone https://github.com/sissokho/bookmarks-api.git
-
Install composer dependencies
composer install
-
Copy .env.example to .env file
cp .env.example .env
-
Create a database
-
Setup a working email driver like Mailtrap. This tutorial shows how to set it up with Laravel.
-
Fill in the database and email environment variables in
.env
file -
Generate app key
php artisan key:generate
-
Run database migrations
php artisan migrate
-
Run Server
php artisan serve
You can find the documentation of the API here.