DEV Community

Kien Nguyen Chi
Kien Nguyen Chi

Posted on

2 2

OSD600 Final Project Blog 2

Introduction

🔥This is a mini-series including 3 blogs that shows the process how I work on my final project in my Open-Source Development class (OSD600) at Seneca College.

đź“ťIn the first blog, I introduced how I found an open-source repo to work for Final Project. In this second blog, I will introduce my process of installation and setup the app.

Process

Step 1: Twitter API

  • I had to register for Twitter API because the app requires API from Twitter.
  • I had to fill out the registration form from Twitter and waited 1 day to be approved for the access granted.
  • I got the API Key in order to implement into Secrets.swift file in the project later.
import Foundation

// swiftlint:disable line_length

enum Secrets{
    static let bearerToken = "myAPIKey"
}
Enter fullscreen mode Exit fullscreen mode

Step 2: AWS Amplify DataStore

  • I had to install AWS Amplify DataStore in case I needed to change the model of the app.
  • I opened the terminal and type:
curl -sL https://aws-amplify.github.io/amplify-cli/install | bash && $SHELL
Enter fullscreen mode Exit fullscreen mode
  • The amplify package is already added to the repo when I folked it my computer.

Step 3: Setup Repo

  • I folked the repo to my GitHub.
  • I cloned it to my computer.
git clone git@github.com:kiennguyenchi/brain-marks.git
Enter fullscreen mode Exit fullscreen mode
  • I set the remote upstream to the maintainer's repo.
git remote add upstream https://github.com/mikaelacaron/brain-marks.git
Enter fullscreen mode Exit fullscreen mode
  • I checked out new branch with formatted name by Contributing.md rule.
git checkout -b 101-feature-pin-category
Enter fullscreen mode Exit fullscreen mode
  • Finally, I could run the app on XCode and opened iPhone 11 Simulator:
    Image description

  • This is the main screen of categories of the app:
    Image description

  • This is the screen when I hold my finger on each category.
    Image description

  • My target is to show the option pin under edit.

Conclusion

đź’»During the installation process, it took me a while to get the API, install the necessary packages and run the app properly.

âť—At first, I could not run the app. I researched and watched youtube videos to see if I installed correctly or not. Finally, I found out that I could not run the app because all the added packages (Amplify, SQLite, Starscream,..) were not finished loading yet. I had to leave them some time to finish loading, then I could run the app.

đź’ŞStay tuned and look forward to my last blog about my implementation process and final result.

Sources

đź“šRead my mini-series at:

đź’»Take a look at my work:

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

đź‘‹ Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay