Best laravel framework open-source packages.

Virtual card api

A simple virtual business card to improve your network and reachability.
Updated 10 months ago
NodeJS Laravel MySQL Linux Git

Virtual Card API

A simple virtual business card to improve your network and reachability.

Table of content

Installation

Local

  1. Firstly you need to install the system required packages. If you are running on a Unix system, you could run the following command to install the required packages. If you are running on a Windows system or another you could search about the dependencies separated and install each one.
chmod +x install-system-requirements.sh && sudo ./install-system-requirements.sh
  1. After install the system required packages, you must run the following command to install the Laravel required packages.
composer install
  1. By now your application has the necessary dependencies, but still not operating. Copy the .env.example file as .env and run the following command to generate the app key.
php artisan key:generate
  1. Run the following command to run the migrations using artisan:
php artisan migrate
  1. Run the following command to generate some fake data for testing purposes
php artisan db:seed
  1. Finally, run the following command to serve the API
php artisan serve

Sail (Docker)

  1. Copy the .env.example file as .env. You could run the API using Laravel Sail. For it, just setup the following alias into your local .bashrc file:
alias sail='[ -f sail ] && sh sail || sh vendor/bin/sail'
  1. Now, run the following command to up the containers
sail up -d
  1. By now your application has the necessary dependencies, but still not operating. Run the following command to generate the app key.
sail artisan key:generate
  1. Run the following command to run the migrations using artisan:
sail artisan migrate
  1. Run the following command to generate some fake data for testing purposes
sail artisan db:seed

And then, your API will be up and running.

Licence

This project is licensed under the MIT Licence. See more information about here

Author

🆙 Back to top

Tags network