Signing up for an account through GitHub at www.portara.io let's you control your Portara tool (www.npmjs.com/portara) through an online GUI. This can be beneficial if settings need to change without re-deploying an application.
- If you haven't downloaded the Portara tool yet, you can find it here www.npmjs.com/portara
- Go to www.portara.io and login with GitHub
- After being redirected to an account page, you will receive a unique user token. This code should be used as an argument when setting up the Portara schema directive.
import portara from 'portara';
const server = new ApolloServer({
typeDefs,
resolvers,
schemaDirectives: {
portara: portara("ENTER YOUR TOKEN HERE")
}
})
- Once the server is started, there's a direct connection to the website and your account. All the settings you have applied in your typeDefs can now be altered online.