Product management API by Rahmat Sayfuddin
Simple Codeigniter, REST Server, JWT implementation. I'm using boiler plate https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample
Set up project on php server (XAMPP/Linux).
- .htaccess file at project root
This project contains .htaccess file for windows machine. Please update this file as per your requirements.
[Sample htaccess code (Win/Linux)] (http://stackoverflow.com/questions/28525870/removing-index-php-from-url-in-codeigniter-on-mandriva)
encryption_key
inapplication\config\config.php
[Encryption key generator] (http://jeffreybarke.net/tools/codeigniter-encryption-key-generator/)
$config['encryption_key'] = '';
jwt_key
inapplication\config\jwt.php
$config['jwt_key'] = '';
- For Timeout
token_timeout
inapplication\config\jwt.php
$config['token_timeout'] = ;
You will need following files:
Import sql to your database /application/config/database.php <= set up your database here
Please reply, if you need additional details. Happy coding!
example of request : import Product Management.postman_collection.json to postmant
[CodeIgniter] (https://www.codeigniter.com/)
[REST Server] (https://github.com/chriskacerguis/codeigniter-restserver)
[Reference for JWT implementation] (https://github.com/rmcdaniel/angular-codeigniter-seed)
[combined all] (https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample)