GithubHelp home page GithubHelp logo

sunsend's Introduction

SunSend a simple and fast message board

Notice: it's still in progress

How it works ?

Welcome to the world of Message Boards :-)

There is 2 program for using sunsend:

  1. Server Side Program (backend): A program that can provide the chat system written in go (in progress)
  2. Client Side program (frontend): A program that can provide a interface for using server side program written in JS (soon)

For sending messages, you need to specify the special channel, each channel has a ID that provram will randomly generate it for,you can find more information in the API documentation (in progress)

This repo is a server side Rest API that provide the chat system, if you wanna just use the chat in your website, you need to see the client repo (in progress) I'm trying to make server clientless, that means you can make a client base on your server for yourself. but if you wanna make your own client you need to know some standard rules, you can find them in the repo (soon)

For more things, you can checkout TODO.md

How does API KEY works?

SunSend server has Client (or you can write one) and for connecting to the server, you need to select your special server

And you wanna sure that just your client can send messages to the your own server, API KEY can provide a authentication process that

You can use on your client and just you (or your website AKA your users) can send message to your SunSend server.

You can generate a api key with cmd/genkey.go and put that to your .env file as _API_KEY variable

for generating api key:

make setup

How to run the server?

For running SunSend you need to do somethings before running it

First of All, you need to generate a api key for your server, you can read more about it on the How Does API Works part

Second, you need to fill your .env file with your own values, notice that that file is a very important file and you must fill it with your own values, variables are:

PORT: your default port for your server
KEY: your API KEY for your sevrer

Thirth, you need to config your server, if you wanna use the default configuration type:

make config

this will install a simple configuration for you

Fourth, you can finnally run your server with command:

make run

Build and run SunSend (soon)

sunsend's People

Contributors

ashk123 avatar

Watchers

 avatar

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.