Git Product home page Git Product logo

murmur's Introduction

A serverless, customizable comment system

Features

  • Serverless & Self-deployable
  • Fully customizable, you decide
    • ๐Ÿ’พ Where to store data
    • ๐Ÿ’… How the comments look like
    • โšก๏ธ How you deploy this service
    • ๐Ÿ””๏ธ How to get notified

Usage

1. Add murmur style and script to the <head>

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/murmur.moe@0/style.css"/>
<script defer src="https://cdn.jsdelivr.net/npm/murmur.moe@0/dist/murmur.umd.js"></script>

2. Add a <div> to the place you want to display comments

<div id="murmur" host="https://api.murmur.moe"></div>

Note: You can change the host to use your owen backend.

Deploy backend

Deploy to tencent cloud

1. Open this repo in codespace or clone it to your computer

2. Add .env file in backend folder

STORE_PLUGIN=s3
STORE_END_POINT=https://cos.ap-hongkong.myqcloud.com
STORE_SECRET_ID=****
STORE_SECRET_KEY=****

## Choose a bucket
STORE_BUCKET=serverless-comment-1303103251
STORE_REGION=ap-hongkong
SERVERLESS_PLATFORM_VENDOR=tencent

3. Add serverless.yml file in backend folder

# serverless.yml
component: http
name: serverless-comment-api
inputs:
  src: ./
  faas:
    runtime: Nodejs12.16
    framework: express
    name: ${name}
  apigw:
    protocols:
      - http
      - https

4. Enter backend dir

cd backend

5. Install serverless framework and Deploy

# Install serverless cli
npm i serverless -g

# Enter backend dir
cd backend

# Install dependencies
npm install --production

# Deploy to tencent scf
serverless deploy
Deploy to AWS(TODO)
Deploy to Vercel(TODO)
Self-deploy

murmur's People

Contributors

timqian avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

murmur's Issues

Dashboard

Users should be able to claim their website and manage comments on their website, this can be a pro feature

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.