Table of Contents
Perpustakaan (Library) is backend application for library management system. It can manage data in libraries such as books, borrows, publishers, employees, and members.
-
Clone the repo.
git clone https://github.com/fahri-r/news-api.git
-
Install Composer packages.
composer install
-
Rename
.env.example
into.env
. -
Set the database value in
.env
.... DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=laravel DB_USERNAME=root DB_PASSWORD= ...
-
Set the cloudinary url value in
.env
.... CLOUDINARY_URL=cloudinary://...@.... ...
-
Set the redis value and queue connection in
.env
.... QUEUE_CONNECTION=redis REDIS_HOST=127.0.0.1 REDIS_PASSWORD=null REDIS_PORT=6379 ...
-
Create database according to DB_DATABASE. in this case I have to create a database named
laravel
. -
Execute database migration.
php artisan migrate:fresh
-
Create Encryption keys using this command.
php artisan passport:keys
-
Create personal access client.
php artisan passport:install
Once you have done the installation, let's start the local server.
php artisan serve
Now, Visit http://localhost:8000/api and you will see a message saying "Hello World". Also if you want to see the queue, you have to run.
php artisan queue:work
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project.
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
). - Commit your Changes (
git commit -m 'Add some AmazingFeature'
). - Push to the Branch (
git push origin feature/AmazingFeature
). - Open a Pull Request.
Distributed under the MIT License. See LICENSE
for more information.