Skip to content

acao/CommunityEvServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CommunityEvServer

For the CommunityEv react native app, a backend for bookmarking, subscriptions, managing lists of events and accessing fields and edges that OG doesn't provide.

Build Status

Usage

Start the Development Server

npm start

When starting the server there are a couple of parameters you can pass:

  • verbose - Enable verbose output
  • release - Enable release mode, which will generally disable debugging features

Hot reloading is in place, so you do not need to restart the server on file change.

Environment Variables

The following environment variables are supported:

  • PORT - defaults to 1234 if not set

Deployment

If you want to deploy your application, simply copy the build folder and invoke

node server.js

GraqhQL Examples

Create User

mutation CreateUser($username: String!, $password: Password!){
  signup(username:$username, password: $password) {
    _id
    username
    createdAt
    updatedAt
    mail
  }
}

input:

{
  "bookmarkedId": "Bob",
  "bookmarkedType": "Bob"
}

Add Bookmark

mutation AddBookMark($bookmarkedId: Int!, $bookmarkedType: String!){
  addBookmark(
    bookmarkedId: $bookmarkedId,
	bookmarkedType: $bookmarkedType
  )
  {
    bookmarkedId,
    bookmarkedType
  }
}

input:

{
  "bookmarkedId": 12121212,
  "bookmarkedType": "Event"
}

About

A webserver for the CommunityEv webapp using Express, GraphQL and Mongoose

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published