Clone project:
$ git clone https://github.com/adopabianko/tekno.git
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
Run the following command:
$ cd ../api
$ cp -R .env.example .env
$ npm install
$ docker-compose up -d
Access Url http://localhost:3434
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
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 |