A boilerplate that you can clone to use REST or GraphQL on top of Realm.
- It support subscriptions via websockets
- Ensure you have Node version 4 or higher.
- Ensure you are running on Linux or Mac OSX. (windows support is close on the horizon)
- Place a copy of
realm-professional.tgz
in the root directory - Installation. Just run:
npm install
- Just Building: Just run
npm run build
- Running and Building
npm run start
The server should run on port 5000.
You have two options:
- Change
4500
to whatever port you want then run this command.npm run build && PORT=4500 npm run start
- Directly changing the code in
src/server.ts
.
- Place it in your newly specified location
- Update the dependency for
realm
inpackage.json
and update the location - Run
npm install
once again.
Debugging with breakpoints with Visual Studio Code comes out of the box!
- Make sure you've installed all dependences with
npm install
- Just run by pressing
Command+F5
- Add breakpoints and debug the runtime!