Skip to content

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

Notifications You must be signed in to change notification settings

Awkk/klon-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks