Conkard is a digital business card application where users can create, share, and save contacts. This repository contains the backend API for the Conkard application, built using Laravel.
Created by Byandev IT Solutions.
-
Clone the repository:
git clone https://github.com/yourusername/conkard.git cd conkard
-
Install the dependencies:
composer install
-
Copy the example environment file and configure the environment variables:
cp .env.example .env php artisan key:generate
-
Set up your database configuration in the
.env
file. -
Run the database migrations:
php artisan migrate
-
(Optional) Seed the database with sample data:
php artisan db:seed
Make sure to configure the following environment variables in your .env
file:
DB_CONNECTION
DB_HOST
DB_PORT
DB_DATABASE
DB_USERNAME
DB_PASSWORD
Additionally, you may need to configure other settings such as mail and queue configurations as required by your application.
Start the development server:
php artisan serve
The API will be available at http://localhost:8000
.
POST /api/v1/register
- Register a new userPOST /api/v1/login
- Authenticate a user and get a token
POST /api/v1/cards
- Create a new business cardGET /api/v1/cards
- Get a list of all business cardsGET /api/v1/cards/{id}
- Get details of a specific business cardPUT /api/v1/cards/{id}
- Update a business cardDELETE /api/v1/cards/{id}
- Delete a business cardPOST /api/v1/cards/{id}/image
- Upload business card imageDELETE /api/v1/cards/{id}/image/{id}
- Delete business card image
POST /api/contacts
- Save a new contactGET /api/contacts
- Get a list of all contactsGET /api/contacts/{id}
- Get details of a specific contactPUT /api/contacts/{id}
- Update a contactDELETE /api/contacts/{id}
- Delete a contact
This project is licensed under the MIT License. See the LICENSE file for more details.