简体   繁体   English

如何使用新的 React 应用程序使用已经创建的放大后端?

[英]how to work with already created amplify backend with new react app?

I want to add the backend files from amplify console(like amplify authentication, amplify api, amplify storage category) to my new react project?我想将来自放大控制台的后端文件(如放大身份验证、放大 api、放大存储类别)添加到我的新反应项目中?

In your react project, you need to take a pull from the amplify with your protect id.在你的 React 项目中,你需要使用你的保护 ID 从 amplify 中获取一个 pull。

amplify pull --appId [your-existing-amplify-backend-project-id] --envName dev

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 AWS 'Amplify push' 命令在 React Native 项目中给出 'file already exists in amplify/.temp/#current-cloud-backend' 错误 - AWS 'Amplify push' command giving 'file already exists in amplify/.temp/#current-cloud-backend' error in React Native project promise 和 useState 在 React 与 AWS Amplify 中如何真正发挥作用? - how does promise and useState really work in React with AWS Amplify? 如何将 Amplify 应用程序 ID 传递给 function? 如何从后端功能进行应用自省? - How to pass the Amplify app ID to a function? How to do app introspection from backend functions? 如何在 React 应用程序中使用 AWS Amplify 环境变量? - How to use AWS Amplify environment variables in React app? 恢复放大后端环境 - Restore amplify backend environment AWS Amplify:将现有应用程序切换到新存储库? - AWS Amplify: Switch existing app to new repository? iOS 应用程序使用 AWS Amplify DataStore,它不与后端 (DynamoDB) 同步 - An iOS app uses AWS Amplify DataStore and it does not sync with backend (DynamoDB) 如何让 AWS Amplify 访问我的 React App 的公共目录 - How to make AWS Amplify access my React App's public directory 如何在请求后端 Node 应用程序后刷新 React 组件? - How to refresh a React component after a request to backend Node app? 如何解决 Amplify backend-config.json 不存在的问题 - How to solve Amplify backend-config.json does not exist issue
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM