- clone files
- setup virtual hosts in xampp, make hosts file point a domain( example hestialocal.live) to localhost
- create folder development or production in application/config folder
- create configurations
- config.php : basic codeigniter config
- database.php : database config
- google_api.php : google auth api keys
- super.php : super admin credentials
- start apache and MySQL servers
- goto your_domain/migrate/index to migrate database
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/x-www-form-urlencoded");
RequestBody body = RequestBody.create(mediaType, "username=<username>&password=<password>");
Request request = new Request.Builder()
.url("http://hestialocal.live/admin/login")
.post(body)
.addHeader("Content-Type", "application/x-www-form-urlencoded")
.build();
Response response = client.newCall(request).execute();
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("http://hestialocal.live/admin/category[/<id>]")
.get()
.build();
Response response = client.newCall(request).execute();
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/x-www-form-urlencoded");
RequestBody body = RequestBody.create(mediaType, "cat_name=&username=&password=");
Request request = new Request.Builder()
.url("http://hestialocal.live/admin/category")
.post(body)
.addHeader("Content-Type", "application/x-www-form-urlencoded")
.build();
Response response = client.newCall(request).execute();
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/x-www-form-urlencoded");
RequestBody body = RequestBody.create(mediaType, "cat_id=&cat_name=&username=&pswd=");
Request request = new Request.Builder()
.url("http://hestialocal.live/admin/category")
.put(body)
.addHeader("Content-Type", "application/x-www-form-urlencoded")
.build();
Response response = client.newCall(request).execute();
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("http://hestialocal.live/admin/category/<id>")
.delete(null)
.build();
Response response = client.newCall(request).execute();