# Installation

COMPATIBILITY NOTE

Vue CRUD requires Node.js >= 8.

# Creating a new project

Vue CRUD is an application template, not a library, so it can not be added as a library in dependencies.
To set up a new project, you must download it or clone from the repository on GitHub.

# Dependencies installation

Before you start working on a project, you need to install dependencies from the package.json file in your project. To do this, use the command line to enter the project location, and then enter one of the following commands:

npm install
# or
yarn

WARNING

To use 'yarn' command you must have yarn installed.

# Quick start

Do you want to test the application quickly, and you do not have an API ready? No problem, you can use the ready-made example in the examples folder. The API for this example is available on the internet, so you can connect to it by entering its address in the configuration file.

# Steps

  1. Clone Vue CRUD:
git clone git@github.com:szczepanmasny/vue-crud.git
  1. Type following commands:
yarn
:: or
npm install
  1. Choose one of the following templates:
  • empty,
  • simple-crud,
  • sandbox,
  • crm,
  • cms

...and type e.g.:

yarn load-template simple-crud
:: or
npm run load-template simple-crud
  1. If you have your own API prepared, modify src/config/api.js file.

  2. Serve your app:

yarn serve
:: or
npm run serve
  1. Your app is already running (probably at http://localhost:8080).

# API

By default, the examples in Vue CRUD connect to the existing API at http://crm-api.id-a.pl. You can create your own API or use the examples created by What CRUD !. At the moment the version created in PHP and Laravel is available:

Laravel CRUD API

Steps:

  1. Clone or download this project,
  2. Open command line and go to the project directory,
  3. Type:
composer install
  1. Create database(s) for your project,
  2. Create .env file based on .env.example and configure your project,
  3. Type:
php artisan key:generate
  1. Type:
php artisan load-template

and select one of available templates

  1. Type:
php artisan migrate
  1. Run seeders if available,
  2. Type:
php artisan serve

Change api.js file in src/config directory:

src/config/api.js:

export const api = {
    url: 'http://127.0.0.1:8000/',
    path: {
        default: 'api',
        storage: 'storage/',
        upload: 'files/file-upload'
    }
}