Coder Social home page Coder Social logo

pherval / community-server Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 8.2 MB

WIP - Community is the server module for a forum application, also known as community, which connects people around a discussion topic to help each other

Home Page: https://community-graphql.herokuapp.com

License: MIT License

JavaScript 5.27% Dockerfile 0.23% TypeScript 91.51% Shell 2.98% HTML 0.01%
community apollo graphql nodejs forum server express

community-server's Introduction

Community Server

MIT License Docker build Build and Test

Community-server is the server module for a forum application, also known as community, which connects people around a discussion topic to help each other. The client can be found here

Environment Variables

To customize this project, you may add the following environment variables to your .env file in development environment

Variable Default Description
PORT "3000" Server's port
SENTRY_DNS undefined Sentry API Key to monitoring the app
APOLLO_KEY undefined Apollo API Key to track GraphQL schema
APOLLO_GRAPH_ID undefined Apollo Graph ID
APOLLO_GRAPH_VARIANT undefined Apollo Graph variant name. Usually an environment
APOLLO_SCHEMA_REPORTING undefined Indicates whether to push graphql schema to Apollo
LOG_LEVEL "info" Log level can give you more information
NO_LOG false For security reasons you can disable logger
DATABASE_URI undefined MongoDB URI to be connected
DEBUG undefined Debug the app

Run Locally

Requirements:

Clone the project

  git clone https://github.com/pherval/community-server

Go to the project directory

  cd community-server

Install dependencies

  npm install

Before starting make sure MongoDB is running and proper set or in /.env has DATABASE_URI environment variable

Start the server

Build the app

  npm run build

then start it

  npm run start

Start in dev mode

  npm run dev

Start using Docker

  • write script
  • write documentation

Running Tests

To run tests, run the following command

  npm run test

Tech Stack

notable techs used:

Authors

Contributing

  • write contributing.md guide

Contributions are always welcome!

See contributing.md for ways to get started.

Please adhere to this project's code of conduct.

License

MIT

community-server's People

Contributors

peterleiva avatar snyk-bot avatar

Stargazers

 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.