AMPLIFY
-
우리가 회원가입할 때 이메일에 @가 들어가야 되거나 비밀번호에 특수문자가 들어가 있는지 확인하는 정규식에 대하여 확인한다. 1. 이메일 형식이 맞는지 확인하는 정규식(@) func isValidEmail(email:String?) -> Bool { guard email != nil else {return false} let regEx = "[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,64}" let pred = NSPredicate(format:"SELF MATCHES %@", regEx) return pred.evaluate(with: email) } 2. 비밀번호에 특수문자가 있는지 확인하는 정규식 func isValidPassword(pw: String?) ->..
UniNuri (11) : 비밀번호 / 이메일 정규식(Regular Expression)우리가 회원가입할 때 이메일에 @가 들어가야 되거나 비밀번호에 특수문자가 들어가 있는지 확인하는 정규식에 대하여 확인한다. 1. 이메일 형식이 맞는지 확인하는 정규식(@) func isValidEmail(email:String?) -> Bool { guard email != nil else {return false} let regEx = "[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,64}" let pred = NSPredicate(format:"SELF MATCHES %@", regEx) return pred.evaluate(with: email) } 2. 비밀번호에 특수문자가 있는지 확인하는 정규식 func isValidPassword(pw: String?) ->..
2023.07.30 -
커뮤니티에서 가장 중요한 인증 부분을 하였다. 공식문서 : https://docs.amplify.aws/lib/auth/getting-started/q/platform/ios/#option-1-use-the-authenticator-ui-component https://docs.amplify.aws/lib/auth/getting-started/q/platform/ios/#option-1-use-the-authenticator-ui-component docs.amplify.aws 이 공식문서에서 주의해야 할 점이 Amplify CLI를 사용하는 버전과 Amplify Studio를 사용하는 버전이 나누어져있는데 실수로 Amplify CLI 버전으로 세팅을 하여 프로젝트를 다시 만들기도 하고 오래 걸렸다. 구..
UniNuri (9) : Amplify Authentication커뮤니티에서 가장 중요한 인증 부분을 하였다. 공식문서 : https://docs.amplify.aws/lib/auth/getting-started/q/platform/ios/#option-1-use-the-authenticator-ui-component https://docs.amplify.aws/lib/auth/getting-started/q/platform/ios/#option-1-use-the-authenticator-ui-component docs.amplify.aws 이 공식문서에서 주의해야 할 점이 Amplify CLI를 사용하는 버전과 Amplify Studio를 사용하는 버전이 나누어져있는데 실수로 Amplify CLI 버전으로 세팅을 하여 프로젝트를 다시 만들기도 하고 오래 걸렸다. 구..
2023.07.02 -
기본적으로 커뮤니티를 사용할 때에 알림을 사용한다. APNs(Apple Push Notification service)를 AWS Amplify에서 사용할 수 있었다. 공식 문서 따라서 해보면 더욱더 이해가 빨랐다. https://docs.amplify.aws/sdk/push-notifications/getting-started/q/platform/ios/ https://docs.amplify.aws/sdk/push-notifications/getting-started/q/platform/ios/ docs.amplify.aws 댓글 UPDATE까지는 했지만 작성을 하려면 누가(?) 작성했는 지를 알아야 하기 때문에 인증을 먼저 시작하였다. 일단 userName과 email, password를 받는 회원가입..
UniNuri (8) : APNs, Authentication Setting기본적으로 커뮤니티를 사용할 때에 알림을 사용한다. APNs(Apple Push Notification service)를 AWS Amplify에서 사용할 수 있었다. 공식 문서 따라서 해보면 더욱더 이해가 빨랐다. https://docs.amplify.aws/sdk/push-notifications/getting-started/q/platform/ios/ https://docs.amplify.aws/sdk/push-notifications/getting-started/q/platform/ios/ docs.amplify.aws 댓글 UPDATE까지는 했지만 작성을 하려면 누가(?) 작성했는 지를 알아야 하기 때문에 인증을 먼저 시작하였다. 일단 userName과 email, password를 받는 회원가입..
2023.06.25 -
두 개의 카테고리를 구분하여 댓글을 불러오고 싶었다. 카테고리를 지정하여 정보를 넘겨주는 곳에서 카테고리 이름을 구분을 통해 댓글을 구분하고 그 가져온 댓글 중에서 한 게시물 안에 있는 댓글만 띄워야 해서 백엔드 쪽에서 테이블을 확인해 보았다. type Freecomment @model @auth(rules: [{allow: public}]) { id: ID! com_writer: String! com_comment: String! registerdate: AWSDateTime! freeboardID: ID! @index(name: "byFreeboard") } 댓글 테이블에 있는 [ID]가 게시물의 [ID]와 비교하여 띄우면 될 거 같다. var thisFreeComment: [Freecomment] ..
UniNuri (7) : 댓글 UPDATE / CREATE두 개의 카테고리를 구분하여 댓글을 불러오고 싶었다. 카테고리를 지정하여 정보를 넘겨주는 곳에서 카테고리 이름을 구분을 통해 댓글을 구분하고 그 가져온 댓글 중에서 한 게시물 안에 있는 댓글만 띄워야 해서 백엔드 쪽에서 테이블을 확인해 보았다. type Freecomment @model @auth(rules: [{allow: public}]) { id: ID! com_writer: String! com_comment: String! registerdate: AWSDateTime! freeboardID: ID! @index(name: "byFreeboard") } 댓글 테이블에 있는 [ID]가 게시물의 [ID]와 비교하여 띄우면 될 거 같다. var thisFreeComment: [Freecomment] ..
2023.06.24 -
공식 문서 보고 진행을 하였다. https://docs.amplify.aws/lib/datastore/getting-started/q/platform/ios/ https://docs.amplify.aws/lib/datastore/getting-started/q/platform/ios/ docs.amplify.aws - AppDelegate 추가 func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { // Override point for customization after application launch. ..
UniNuri (2) : Amplify 연결 및 Data 전송공식 문서 보고 진행을 하였다. https://docs.amplify.aws/lib/datastore/getting-started/q/platform/ios/ https://docs.amplify.aws/lib/datastore/getting-started/q/platform/ios/ docs.amplify.aws - AppDelegate 추가 func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { // Override point for customization after application launch. ..
2023.05.17