marcguillemdev / kya

Kya is a headless CMS designed to serve information across different domains through Rest API.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

kya logo

KYA IS STILL IN DEVELOPMENT AND DOES NOT HAVE AN INSTALLER YET

Kya, a small and fast headless CMS

Kya is a small CMS coded in Java and TypeScript using Spring Boot and Angular. From Kya you can manage multiple domains that contain a lot of posts from one place. The posts can be retrieved from an API and it only serves to specific domain.

๐Ÿ”จ To do list

Feature State
๐Ÿ‘ทโ€โ™‚๏ธ CRUD for Users 90%
๐Ÿ“– CRUD Domains 90%
๐Ÿ—‚๏ธ CRUD for Posts 80%
๐Ÿ‘ฎโ€โ™€๏ธ Auth Flow 90%
๐Ÿ“ˆ Dashboard 0%
๐Ÿ’โ€โ™‚๏ธ REST API 0%

๐Ÿ› ๏ธ Building front-end (Angular)

  1. Clone repo: git clone https://github.com/marcguillemdev/kya
  2. Go inside project: cd ./kya/front-end
  3. Install dependencies: npm install (Requires Node.JS)
  4. Serve application via: ng serve
  5. Visit http://localhost:4200 and you will see a blank page because we do not configure the backend yet :3

๐Ÿ› ๏ธ Building backend (Spring Boot)

Spring Boot is quite more complex to run because we need a MySQL database (or another database engine) running and configured. So in order to get started we have to edit the Application.properties.

I strongly recommend to use IntelliJ IDEA to manage Gradle dependencies and run configuration automatically.

MySQL Connector is present in build.gradle file, if you want to use another DB Engine, please install the proper connector.

  1. Open \src\main\resources\application.properties file and edit the following values:

    1. spring.datasource.url. Is not really necessary to edit this field if you have a MySQL database running on your local machine with default port and a database named Kya created. If you dont have that, then configure it to make it work.
    2. spring.datasource.username. Put your MySQL username.
    3. spring.datasource.password. Put your MySQL password.
  2. After edit of application.properties file, we are ready to run Kya. You can run it building a .jar or from your IDE using gradle run configuration. If you are in IntelliJ IDEA, just open the right panel called "Gradle" and run bootJar configuration.

Every restart, Kya recreate the database and insert some test data.

๐ŸŽ‰ ยกWe are ready to use Kya!

Now go back to your browser and refresh http://localhost:4200 and you will see the login page. Use admin as username and admin as password. All generated users have the same value in the username and password.

๐Ÿ’ผ License

GPLv3. Take a look to license file for more information.

About

Kya is a headless CMS designed to serve information across different domains through Rest API.

License:GNU General Public License v3.0


Languages

Language:TypeScript 32.8%Language:CSS 22.8%Language:HTML 22.5%Language:Java 21.4%Language:JavaScript 0.5%