Graphql + Mongo backend
Access the See the home page footer to access signup, login, logout and profile page. Implementation is based on Next official example with Passport and Next Connect
Experimental SSR redirection
This feature is experimental and not useful in most scenarios. We advise to stick to client-side only patterns. See relevant issue.
src/pages/vn/debug/private for a demo. You can use
withPrivateAccess HOC to make a page private and handle redirections correctly in all situations (server-side, client-side, in the context of a static export etc.).
Demo of a simple server
src/pages/api/graphql for a demo server built with Apollo and Express
NOTE: Expect drastic enhancement of the way the server is set up, thanks to VulcanJS declarative approach.
GraphQL Playground is available on
api/graphql. All API routes of Next are located in the
src/pages/api folder, hence the
api/debug/graphql-voyager and explore your API visually.
Persistance with Mongo through Docker
As easy as ABC:
It will run an ephemeral Docker instance of Mongo v4. Data are stored in your project, in the
./.mongo folder. The container is removed when stopped, but your data are persisted and will still be available on next run.
Lambda safe connection