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.
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.
The following environment variables are supported:
- PORT - defaults to 1234 if not set
If you want to deploy your application, simply copy the build folder and invoke
node server.js
mutation CreateUser($username: String!, $password: Password!){
signup(username:$username, password: $password) {
_id
username
createdAt
updatedAt
mail
}
}
input:
{
"bookmarkedId": "Bob",
"bookmarkedType": "Bob"
}
mutation AddBookMark($bookmarkedId: Int!, $bookmarkedType: String!){
addBookmark(
bookmarkedId: $bookmarkedId,
bookmarkedType: $bookmarkedType
)
{
bookmarkedId,
bookmarkedType
}
}
input:
{
"bookmarkedId": 12121212,
"bookmarkedType": "Event"
}