# 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
- Clone Vue CRUD:
git clone git@github.com:szczepanmasny/vue-crud.git
- Type following commands:
yarn
:: or
npm install
- 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
If you have your own API prepared, modify src/config/api.js file.
Serve your app:
yarn serve
:: or
npm run serve
- 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:
Steps:
- Clone or download this project,
- Open command line and go to the project directory,
- Type:
composer install
- Create database(s) for your project,
- Create .env file based on .env.example and configure your project,
- Type:
php artisan key:generate
- Type:
php artisan load-template
and select one of available templates
- Type:
php artisan migrate
- Run seeders if available,
- 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'
}
}