0.3.1 • Published 7 months ago

@adpt/cloud v0.3.1

Weekly downloads
232
License
Apache-2.0
Repository
github
Last release
7 months ago

Adapt logo

npm Gitter License

Adapt - ReactJS for your infrastructure.

Adapt is a system to easily, reliably, and repeatably deploy your full-stack applications. Adapt specifications look like React apps, but instead of rendering browser DOM elements like <input>, or <div>, Adapt specifications use elements like AWS <EC2Instance>, Kubernetes <Pod>, or <MongoDB> database.

If you're already familiar with React, you'll feel right at home with Adapt. But if not, don't worry, knowledge of React isn't required to start using Adapt.

Getting Started

For a new project, it's easy to get started with Adapt by using a starter template. The Getting Started Guide will walk through installing Adapt and deploying your first starter app.

Creating and deploying an app

This example creates a new full-stack app from a starter template. It has a React UI, an Nginx web server, a Node.js API server, and a Postgres database, then deploys it to Kubernetes:

# Install adapt
npm install -g @adpt/cli

# Create a new app from a starter template
adapt new hello-react-node-postgres ./myapp
cd myapp/deploy

# Deploy to Kubernetes using "k8s" style sheet
adapt run k8s

The Adapt description for the complete app stack looks like this:

import Adapt from "@adpt/core";
import { NodeService, ReactApp } from "@adpt/cloud/nodejs";
import { Postgres } from "@adpt/cloud/postgres";

function MyApp() {
  const pg = Adapt.handle();

  return (
    <Adapt.Group>
      <ReactApp srcDir="../frontend" />
      <NodeService srcDir="../backend" connectTo={pg} />
      <Postgres handle={pg} />
    </Adapt.Group>
  );
}

Adapt in action

This demo shows using Adapt to create and deploy a simple app called MovieDB that has a React UI, an Nginx web server, an Nginx URL router, a Node.js API server, and a Postgres database, then deploys it to Kubernetes:

Adapt in action

More info

Getting Help

Gitter

We'd love to hear about your experience with Adapt! Join us on our Gitter channel to ask questions or to give us your feedback and suggestions.

If you've found a bug, you can also file an issue.

0.4.0-next.28

7 months ago

0.4.0-next.27

8 months ago

0.4.0-next.26

3 years ago

0.4.0-next.25

4 years ago

0.4.0-next.24

4 years ago

0.4.0-next.23

4 years ago

0.4.0-next.22

4 years ago

0.4.0-next.21

4 years ago

0.4.0-next.20

4 years ago

0.4.0-next.19

4 years ago

0.4.0-next.18

4 years ago

0.4.0-next.17

4 years ago

0.4.0-next.16

4 years ago

0.4.0-next.15

4 years ago

0.4.0-next.14

4 years ago

0.4.0-next.13

4 years ago

0.4.0-next.12

4 years ago

0.4.0-next.11

4 years ago

0.4.0-next.10

4 years ago

0.4.0-next.9

4 years ago

0.4.0-next.8

4 years ago

0.4.0-next.7

4 years ago

0.4.0-next.6

4 years ago

0.4.0-next.5

4 years ago

0.4.0-next.3

4 years ago

0.4.0-next.4

4 years ago

0.4.0-next.2

4 years ago

0.4.0-next.1

4 years ago

0.3.1

4 years ago

0.3.0

4 years ago

0.3.0-next.3

4 years ago

0.3.0-next.2

4 years ago

0.3.0-next.1

4 years ago

0.2.0

5 years ago

0.2.0-next.4

5 years ago

0.2.0-next.3

5 years ago

0.2.0-next.2

5 years ago

0.2.0-next.1

5 years ago

0.1.0-next.4

5 years ago

0.1.0-next.5

5 years ago

0.1.0

5 years ago

0.1.0-next.3

5 years ago

0.1.0-next.1

5 years ago

0.0.6

5 years ago

0.0.6-next.2

5 years ago

0.0.6-next.1

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.4-next.1

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.2-next.4

5 years ago