GithubHelp home page GithubHelp logo

awkk / klon-server Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 628 KB

A GraphQL server that works with Klon-Client to mimic features of Reddit.

Home Page: https://klon.andrewkkw.com/

TypeScript 99.53% Dockerfile 0.47%

klon-server's Introduction

Klon-Server

A GraphQL server that works with Klon-Client to mimic features of Reddit.

About The Project

https://klon.andrewkkw.com/

Klon Screen Shot

Built With

Getting Started

Clone the project

$ git clone https://github.com/Awkk/klon-server.git

Install all dependencies

$ npm install

Installation

Create file .env in root directory and set up enviornment variables below:

  • PORT

    port for the server to run on

  • DATABASE_URL

    Database url to connect. Database used for storing all data.

  • REDIS_URL

    Redis url to connect. Redis used for session based authentication.

  • SESSION_SECRET

    Session secret for user authentication.

  • CORS_ORIGIN

    The url for the front end.

  • SSL_PASSPHASE

    Optional. Not needed when running in production enviornment. SSL passphase for the self-signed certificate.

Executing program

Build the project

$ npm run build

Then run it

$ npm run start

klon-server's People

Contributors

awkk 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.