Skip to content

adopabianko/tekno

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 

Repository files navigation

oskab

Install via Docker

Clone project:

$ git clone https://github.com/adopabianko/tekno.git

CMS Installation Process

Run the following command:

$ cd cms
$ cp -R .env.example .env
$ docker network create tekno_network
$ ./vendor/bin/sail up -d
$ ./vendor/bin/sail artisan migrate
$ ./vendor/bin/sail artisan db:seed
$ ./vendor/bin/sail artisan storage:link

Access Url http://localhost:8484

API Installation Process

Run the following command:

$ cd ../api
$ cp -R .env.example .env
$ npm install
$ docker-compose up -d

Access Url http://localhost:3434

API Access

To access the API, you need a token as a parameter in the request header which is automatically generated by the system, run the following command to get the token:

$ node console generatetoken

flip

flip

Endpoint API :

Name URL Method
All Posts http://localhost:3434/post GET
Post By Category http://localhost:3434/post?category=gadget GET
Post Categories http://localhost:3434/post/category GET
Post Tags http://localhost:3434/post/tag GET