Skip to content
This repository has been archived by the owner on Feb 5, 2020. It is now read-only.
/ TAJP Public archive

Angular+Javascript+PHP Template based on Slim PHP Framework with JWT Authentication.

License

Notifications You must be signed in to change notification settings

vincurekf/TAJP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

[Discontinued] - TAJP - Template Angular+Javascript+PHP

Supersimple template/boilerplate for starting small projects with separated client side and server/api.

Install & Config

Install dependencies via Composer.

Run in /server directory:

php composer.phar install

Change the settings in server/config/config.php:

// Database settings
define("DB_HOST", "localhost");
define("DB_USER", "root");
define("DB_PASS", "passwd");
define("DB_NAME", "test");

// Password salt
define('PASS_SALT', "some_strong_random_string");

// Json Web Tokens
// Secret key, change this to your unique key, do not share or public anywhere
define("JWT_SECRET", "some_strong_random_string");
// Expiration of cookies in minutes
define("JWT_EXPIRE", 15);

Change the server address in client/js/app.js (right on the top):

$rootScope.globals = {
	serverUrl: 'http://localhost/tajp/server'
}

Run _install/create_table.sql in your mysql database manager (phpmyadmin, adminer). This will create table 'accounts'.

And you are good to go.

Used libraries

License

Released under MIT license, Copyright © 2015 Filip Vincůrek

About

Angular+Javascript+PHP Template based on Slim PHP Framework with JWT Authentication.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published