Skip to content

Notes application using VueJs on frontend side and Yii2 Rest API on backend

License

Notifications You must be signed in to change notification settings

thecodeholic/vue.js-yii2-notes

Repository files navigation

Vue.js & Yii 2 REST API notes application


FEATURES

  • Login
  • Registration
  • Create/Update/Delete personal notes
  • SCSS
  • Several Vue.js layouts
  • Redirect to login page when accessing notes with invalid API access token
  • Redirect to home page when accessing login or registration page with valid API access token

DEMO

Vue.js notes demo - https://notes.thecodeholic.com
Yii2 REST API - https://api.notes.thecodeholic.com

REQUIREMENTS

  • PHP >=5.6.0

For development you need the following tools

  • Node.js and npm (For vue.js application you need to have node.js installed)
  • Composer
  • Postman is optional but helpful tool to test your REST API

INSTALLATION

  1. Clone the project
  2. Go to the project root folder
  3. And run composer install
  4. If you want customize vue.js side, go to the vuejs folder
  5. And run npm install

CONFIGURATION

Database

  1. Create database
  2. Create config/db.local.php and return the following configuration array.
return [
    'class' => 'yii\db\Connection',
    'dsn' => 'mysql:host=localhost;dbname=vuejsyii2notes',
    'username' => 'root',
    'password' => '1234',
    'charset' => 'utf8',
];

NOTES: