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
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 |
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
Build the app
npm run build
then start it
npm run start
npm run dev
- write script
- write documentation
To run tests, run the following command
npm run test
notable techs used:
- Node
- Express.js
- ApolloGraphQL
- 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
.