ci-secure-notes-api Svelte Themes

Ci Secure Notes Api

Simple Note-Taking application using CodeIgniter and Svelte, developed for a bachelors thesis

Codeigniter & Svelte Note Application

Purpose

Part of a bachelor's thesis exploring the usage of single page applications and JWTs.

Demo

A demo can be found on http://notes.lehnerdt.eu/ Use only for testing! Privacy of notes saved cannot be guaranteed.

Installation

You need to have PHP, Composer and npm installed on your System.

  • composer update to download PHP packages
  • npm install to download JS dependencies

Setup

Copy env to .env and tailor for your app, specifically the baseURL and any database settings. As well as setting a JWT secret key JWT_SECRET_KEY and token validity periods

  • run php spark serve
  • run npm run dev

Build database with

  • php spark migrate

Add optional sample Data to the Database with

  • php spark db:seed UserSeeder
  • php spark db:seed NoteSeeder
  • php spark db:seed CategorySeeder

For deployment set environment to production in .env. Compile JS with

  • npm run build

Server Requirements

PHP version 7.3 or higher is required, with the following extensions installed:

Additionally, make sure that the following extensions are enabled in your PHP:

  • json (enabled by default - don't turn it off)
  • mbstring
  • mysqlnd
  • xml (enabled by default - don't turn it off)

Top categories

Loading Svelte Themes