Skip to content

This is the RESTapi server to work along with VueJS Blog repository

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
license.txt
Notifications You must be signed in to change notification settings

playxper/CodeIgniter-RESTapi-Server-for-VueJS-Blog-project

 
 

Repository files navigation

# CodeIgniter 4 RESTapi Server for VueJS Blog repository

Based on YouTube tutorial

https://www.youtube.com/watch?v=qPefoRbsfMc&list=PLYogo31AXFBN23O7wHgQv7eI7Qf84nj4W

1. Clone to you XAMPP/WAMP directory

navigate inside your project folder using command line/terminal and run:

composer install

2. Create a database in your phpMyAdmin

Once you create your db import restapi.sql

This mysql dump has some dummy data such as:

In oauth_clients table you already have

Client id: testclient

Client secret: testsecret

You should change this credentials to your own randomly generated keys

In users table you already have

User: Alex Lancer

Email: [email protected]

Password: password

oauth_users

not in use because in the tutorial we created custom Storage driver and used our own table for storing the users which is named 'users' instead of the default table 'oauth_users'

3. Time to setup your .env file

  1. Duplicate env file and uncomment all database.default lines and set you database connection details
  2. Add new line after database.default.DBDriver = MySQLi

    database.default.DSN = 'mysql:dbname=ADD_YOUR_DB_NAME;host=localhost'

  3. Uncomment and set app.baseURL

4. Setup your server to point into public folder of CodeIgniter

Watch this video: https://www.youtube.com/watch?v=qPefoRbsfMc&t=320s

You're good to GO!!!

About

This is the RESTapi server to work along with VueJS Blog repository

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
license.txt

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 96.3%
  • JavaScript 1.7%
  • CSS 1.5%
  • Other 0.5%