A REST API that should power the Agile Monkeys CRM Service

Overview

Agile Monkeys API Backend


Overview

This is a simple REST API that purposes to power the Agile Monkeys CRM service
Key Modules Implemented include:

Demo URL

Please find the demo url here.

Installation

Prerequisites

First things first, kindly ensure that you have the following installed:

  • Git for version control
  • Composer for dependency management
  • Database Server

Clone the repository to your local development environment

git clone https://github.com/Dickens-odera/crm-api.git

Change the directory to the clone path

cd crm-api

then install the packages with composer

composer install

Make a copy of the .env.example file and create a database in your db server

cp .env.example .env

At the Created .env file add the following:

DB_USERNAME=root
DB_DATABASE=< your_database_name >
DB_PASSWORD=< your_database_password >

Generate app key

php artisan key:generate

Modify APP_URL at the .env file to server url i.e APP_URL=http://localhost:8000 so that scribe can pick this for the endpoints

Generate API docs using the scribe API documentation and testing package

php artisan scribe:generate

Run Database Migrations

php artisan migrate --seed

This creates an admin user with the following credentials

Run The application

php artisan serve

then visit http:://localhost:8000/docs to view the API docs where you will interact with the API endpoints

How It Works

After seeding the database in the above step, use the above credentials to test the app on the demo site or on your local machine

Access Tokens

For Authentication, this API uses the lightweight Laravel sanctum package to issue personal access tokens to authenticate

Endpoints that do not require authentication
  • Login
  • Register

Otherwise, all other endpoints will require you to be authenticated, to do this use the credentials above:

  • Visit the documentation page at /docs e.g http://localhost:8000/docs
  • Hit The Login endpoint under Auth -> User Login on the API docs
  • Copy the accessToken generated and
  • Paste it as the Authorization Header for every endpoint you visit

Run the app with Docker

If you have docker installed, run the following commands at the root folder of the project's directory

docker build -t app .
docker run -p 8888:80 app

Have fun!

You might also like...
A simple, extensible REST API framework for PHP

Note: This framework is not stable yet. Introduction Aphiria is a suite of small, decoupled PHP libraries that make up a REST API framework. It simpli

A lightweight REST API framework

php-microframework A minimal PHP 8 REST API built onto php-microframework. Features Automatic routing based on URL path, e.g. https://domain/controlle

PHP REST API without using any frameworks. Contains all CRUD operations.
PHP REST API without using any frameworks. Contains all CRUD operations.

PHP REST API without any framework and CRUD operations 🖐 Hi there, this is a simple REST API built in PHP without using any frameworks. This is built

Laravel Client REST Camunda API

About Laravel Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experie

Osclass REST API plugin.

Osclass API Osclass API plugin, with all the required endpoints and JWT auth. Osclass App (Native + PWA) You always wanted a mobile app for Osclass, d

Joy VoyagerApi module adds REST Api end points to Voyager with Passport and Swagger support.
Joy VoyagerApi module adds REST Api end points to Voyager with Passport and Swagger support.

Joy VoyagerApi This Laravel/Voyager module adds REST Api with Passport and Swagger support to Voyager. By 🐼 Ramakant Gangwar. Prerequisites Composer

A rest api repository with laravel.

About Laravel Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experie

A rest api repository with laravel.

API Back End This is the repository for the TKJ 1 Class 12 Web Back End API system, for detailed info, you can go to the main link of the Front End ap

Phalcon PHP REST API Package, still in beta, please submit issues or pull requests

PhREST API A Phalcon REST API package, based on Apigees guidelines as found in http://apigee.com/about/content/web-api-design Please see the skeleton

Comments
Owner
Dickens odera
A Laravel nerd and Blockchain Enthusiast. Founder & CEO at Tujiajiri Africa
Dickens odera
A Laravel Fractal package for building API responses, giving you the power of Fractal with Laravel's elegancy.

Laravel Responder is a package for building API responses, integrating Fractal into Laravel and Lumen. It can transform your data using transformers,

Alexander Tømmerås 776 Dec 25, 2022
The 1Password Connect PHP SDK provides your PHP applications access to the 1Password Connect API hosted on your infrastructure and leverage the power of 1Password Secrets Automation

1Password Connect PHP SDK The 1Password Connect PHP SDK provides your PHP applications access to the 1Password Connect API hosted on your infrastructu

Michelangelo van Dam 12 Dec 26, 2022
PHP SDK - Flexie CRM fiskalizimi solution

PHP SDK - Flexie CRM fiskalizimi solution Fiskalizimi PHP SDK allows you to talk and generate your e-invoices programmatically from your own solution

Flexie CRM 3 Dec 30, 2021
Simple and effective multi-format Web API Server to host your PHP API as Pragmatic REST and / or RESTful API

Luracast Restler ![Gitter](https://badges.gitter.im/Join Chat.svg) Version 3.0 Release Candidate 5 Restler is a simple and effective multi-format Web

Luracast 1.4k Dec 14, 2022
GraphQL implementation with power of Laravel

Laravel GraphQL Use Facebook GraphQL with Laravel 5.2 >=. It is based on the PHP implementation here. You can find more information about GraphQL in t

Studionet 56 Mar 9, 2022
Simple PHP API client for tube-hosting.com rest API

Tube-Hosting API PHP client Explanation This PHP library is a simple api wrapper/client for the tube-hosting.com api. It is based on the provided docu

null 4 Sep 12, 2022
GraphQL API to Studio Ghibli REST API

GhibliQL GhibliQL is a GraphQL wrapper to the Studio Ghibli REST API Usage First, you'll need a GraphQL client to query GhibliQL, like GraphQL IDE Con

Sebastien Bizet 8 Nov 5, 2022
Single file PHP script that adds a REST API to a SQL database

PHP-CRUD-API Single file PHP script that adds a REST API to a MySQL/MariaDB, PostgreSQL, SQL Server or SQLite database. NB: This is the TreeQL referen

Maurits van der Schee 3.2k Jan 8, 2023
PHP REST API Framework

PSX Framework About PSX is a framework written in PHP dedicated to build REST APIs. It is based on multiple components which cover many aspects of the

Apioo 121 Dec 30, 2022
example repository training REST API

adalah codebase REST-API dari tugas peserta yang mengikuti training membangun REST API dengan lumen selama 2 minggu. studi kasus nya adalah REST API website marketplace untuk agrobisniss.

Nuris Akbar 6 Sep 4, 2021