+
Skip to content

architect-community/react-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Architect Logo

A dynamic microservices framework for building, connecting, and deploying cloud-native applications.


React JS example

An extremely common, modern application stack includes three services: a frontend webapp, a server-side API, and a database. In this example, you'll learn how that stack can be captured in an Architect component to enable automated deployments, networking, and network security for your application wherever it gets deployed to.

In the architect.yml file for this project, we describe all three of these services as deployable runtimes. However, we also leverage Architect's service discovery features to populate environment secrets by reference. This not only allows us to automatically connect the services to each other, but it also allows Architect to build strict network policies to whitelist the traffic between these services. Now we won't have any work ahead of us to promote this stack from local dev all the way through to production readiness!

Learn more about the architect.yml file

Running locally

Architect component specs are declarative, so it can be run locally or remotely with a single deploy command:

# Clone the repository and navigate to this directory
$ git clone https://github.com/architect-community/react-app.git
$ cd ./react-app

# Deploy using the dev command
$ architect dev ./architect.yml

Once the deploy has completed, you can reach your new service by going to https://app.localhost.architect.sh/.

Deploying to the cloud

Want to try deploying this to a cloud environment? Architect's got you covered there too! if you've already created your account, you can run the command below to deploy the component to a sample Kubernetes cluster powered by Architect Cloud:

$ architect deploy ./architect.yml -e example-environment

Advanced deployment example

See this readme for an advanced configuration and deployment example which includes steps to create your own AWS infrastructure all the way to automated deployments using Architect.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载