Webiny- The easiest way to adopt serverless

What is Webiny?

Webiny is an open-source framework for building serverless applications. It provides you with developer tools, libraries, ready-made apps and processes. It’s built on top of AWS cloud and uses the latest technologies such as NodeJs, React and GraphQL.

Photo by Cookie the Pom on Unsplash

Features

GraphQL API layer you can expand

Create new GraphQL schemas, register new microservices and let the built-in Apollo Federation connect it all together. Webiny includes security utilities so you can easily control who can access what. Each microservice runs in its own function and is ready to scale when you need it the most.

Unified GraphQL schema with Apollo Gateway

Each microservice you create registers its queries and mutations with the central Apollo Gateway and exposes a unified GraphQL schema to the rest of the system. Our scaffolding templates make it quick and easy to create new services and expand your schema.

Secured out of the box

Security is a crucial layer in any application. Webiny includes a customizable security module you can use in your schemas. There is also a built-in UI to manage users, groups, roles and scopes.

Create and deploy projects with a single command

Use the Webiny CLI to bootstrap a project and deploy it to a serverless cloud within minutes. The CLI creates all the required resources like AWS Lambdas, S3, API Gateway, CDN and connects them together.

Use scaffolding templates to expand your project

You can read through several pages on how to create a new microservice, or you can just run the `webiny scaffold` command which will create one for you in seconds and hook it up with the rest of the system. Once created you can add your business logic to it and deploy it to your cloud.

Control your deploy process

Webiny CLI comes with hooks as integration points. You can use these hooks to further expand the deploy process, like adding CI/CD support and syncing state files. The CLI is also pluginable, so you can build new functionality to optimise your development and deployment process even further.

Photo by Paul Hanaoka on Unsplash

Quick Start

This is a quick start guide that should help you setup Webiny as fast as possible.

Prerequisites

The following things are mandatory for both local development and production deployments:

  • we recommend this tool to manage your node.js versions
Photo by Brooke Cagle on Unsplash

1. Create a new project

To create a Webiny project:

2. Setup database connection

Edit .env.json file in the root of the project and set the MONGODB_SERVER value. The values in this file are unique for your project, you do NOT need to change any other values.

NOTE: AWS_PROFILE as well as AWS_REGION can be defined by other methods following this guide. As long as AWS SDK can figure out your identity, Webiny will be happy no matter how you configure your credentials.

3. Project runtime

1. Deploy API

We need to deploy a local API environment to use for local development:

2. Start admin app

Admin app is the administration system for your project; it contains everything you need to manage your content, users, settings, etc… :

3. Start site app

Site app is an actual website you’re creating. It is a single page app, but in production it renders via server-side rendering.

Photo by Taylor Vick on Unsplash

References/Sources

  1. https://docs.webiny.com/docs/get-started/quickstart/
  2. https://www.webiny.com/features/

Junior @NITP🌍 ❯ Intern @Dataly ❯ Innovations Lead @dscnitp ❯ Projects Head @hackslash-nitp ❯ 🙅OSH Mentor @anitab-org ❯ ASI @alexa-dev-hub ❯ Mentor @OpenMined