GithubHelp home page GithubHelp logo

sprabowo / duyulaikit Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 8 KB

Self hosted backend service for Lyket.dev

Home Page: https://duyulaikit-service-old.vercel.app

License: MIT License

Shell 0.33% TypeScript 90.35% HTML 9.32%

duyulaikit's Introduction

Duyulaikit

Duyulaikit is a self hosted backend service for Lyket. if you want to use Lyket service in paid version, i highly recommend it. this is experimental and purpose for fun only, you can use it in your personal website / blog. It's free

Technologies

Usage

Setup your storage using Cloud Local Storage

npm install -g cloud-local-storage-cli
cls init # do registration by type email and password
cat ~/.clsrc # save your CLS_TOKEN
cls set
# ? Type a key for your storage (leave empty to name it automatically):
# [type enter]
# ? Type the data you would like to save:
# { "demo": { "updown_button": [], "clap_button": [], "like_button": [], "user": [] } }
# save your CLS_KEY
openssl rand -base64 32 # generate api key with randomize
# save your API_KEY

Clone & Deploy in Vercel

git clone https://github.com/sprabowo/duyulaikit
npm i -g vercel
vercel deploy
# don't forget to setup Environtment Variable through vercel.com
# use the same key value like in .env.example

Embed lyket widget on website

<!-- If you want to use twitter like style -->
<!-- data-lyket-id and data-lyket-namespace is required -->
<div
	data-lyket-type="like"
	data-lyket-id="your-blog-post-1-slug"
	data-lyket-template="twitter"
	data-lyket-namespace="demo"
></div>

<!-- simple like style -->
<div
	data-lyket-type="like"
	data-lyket-id="your-blog-post-2-slug"
	data-lyket-template="simple"
	data-lyket-namespace="demo"
></div>

<!-- simple clap style -->
<div
	data-lyket-type="clap"
	data-lyket-id="your-blog-post-3-slug"
	data-lyket-template="simple"
	data-lyket-namespace="demo"
></div>

<!-- medium clap style -->
<div
	data-lyket-type="clap"
	data-lyket-id="your-blog-post-4-slug"
	data-lyket-template="medium"
	data-lyket-namespace="demo"
></div>

<!-- simple updown vote style -->
<div
	data-lyket-type="updown"
	data-lyket-id="your-blog-post-5-slug"
	data-lyket-template="simple"
	data-lyket-namespace="demo"
></div>

<!-- reddit updown vote style -->
<div
	data-lyket-type="updown"
	data-lyket-id="your-blog-post-6-slug"
	data-lyket-template="reddit"
	data-lyket-namespace="demo"
></div>

<script src="https://unpkg.com/@lyket/[email protected]/dist/lyket.js?apiKey=API_KEY&baseUrl=https://yourdomain.vercel.app/api"></script>

Support

Karya Karsa Buy Me A Coffee

duyulaikit's People

Contributors

sprabowo avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

africademy

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.