0.0.38 • Published 1 year ago

@getwebstack/gws v0.0.38

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

Getwebstack

Getwebstack offers a quick way to build a full-stack application and deploy it locally and in the cloud, with the help of prebuilt, cloud native, micro-apps. We promote breaking the monolith architecture into composable and reusable modules from the beginning, starting from well-defined business areas.

Documentation

You can find detailed use of Getwebstack CLI on the documentation page.

Support

For any issue you can contact us on Discord.

Quick start

Getwebstack offers a cli, gws, through which you can build and manage your app.

1. Prerequisites

gws is build using NodeJs. Please install node and npm. You can install from here.

2. Install gws

Install the cli.

npm install -g @getwebstack/gws

3. Login

In order to have access to the features of the CLI, you must first log in.

gws login

3. Create a new project

Now you can create your first project.

gws project init --name cool-project

4. Add a landing-page

We will use a prebuilt frontend component based on Angular from our library of micro-frontends.

You will need to mention what is the route where the component will be accessible from, as well as associating a local domain. In this example we will route all the traffic to the landing page.

gws component add --name landing --template angular
? Route path: /(.*)
? Local host: local-project.com

You can check all the available components here.

5. Start your app locally

This will start a local cluster and deploy the project.

gws cluster start

The components have live reloading enabled. If you change something in the code of the component, the changes will automatically apply.

6. Check deployment status

While the project is initialised you can check the status of deployment for the landing component.

gws component status landing

7. Check logs

In addition to the status, you can also check the logs in the component to get more details.

gws component logs landing

8 Test the app

Once the setup of the component is complete you can test it in your browser.

Open https://local-project.com.