Skip to main content

Posts

Showing posts from December, 2020

Last Journey for OSD600

   Release 0.4 - After all To achieve my task, I need to google about it a lot and I realized even the best friend was open source especially the git community. There are a lot of similar projects on the git and luckily, I could refer any other codes and some of owners answered well when I asked something that made me very confused although some never answered to me.  More than 10k have used Passportjs and I could find all of them I need and I tried to apply it well. However, looking at code to understand was completely different from writing it. Also the test code made me more confusing because on local it was fine. Only the CI environment not accepted my code. For this reason, I need to ask a lot of questions to the owner and finally I got it. Concluding... My journey on OSD600 is very valuable since I have learned a lot and actually, to be honest it was the best course before jumping into the real code world regardless of open source or closed one. I may need to review...

Finally, release my first open source.

  Starting... This lab is to release my product to install easily. Instead of cloning or downloading and setting it up manually, it provides a lot of convenience for users to install it. I chose NPM since I used nodejs. NPM  is a great site to help develpers to release their git repository in the site.  Progressing... First, I signed up on npmjs.com and logged in the site on the console to release my repository. I had to set up a lot of things like 'npm init', modifying readme and package.json to be ready.  Second, I tried to release my repository by the command, 'npm publish --access public'. Unfortunately, the name, http-parser, was already taken, so I needed to change my name. I chose my name as http-checker and tried to release it again. At this time, I got 403, forbidden error. I spent a lot of time to figure out but it was actually due to not verified account. Once I got the verified email account, finally, I got the release version of my repository. Here is my...

Advanced journey for passport and typescript

  Release 0.4 - Progressing To understand well for oauth2 and passport, I studied and googled it.  It basically provides authentication service using well known sites like google, facebook and github.  Passportjs provides a number of strategies for OAuth2. Here is the  official site . Since passport uses strategy pattern, most of them are very similar and just change some of urls and which information will be used in the strategy. Of course, I spent a lot of time to understand how it worked and actually there were many things I needed to study such as session, cookie and so on. Also, Typescript is very helpful. I cannot added any property as it is ok on Javascript.  When I added githubId in user, it automatically gave me an error and I needed to figure out where I need to add it. It is not really difficult since I studied OOP a lot but I am pretty sure I will be a fan of it. After I spent some time, I added them successfully and made a PR. However, the CI s...

Start new journey for oauth2

  Release 0.4 For the release 4, I decided to contribute the issue that I failed to contribute since the owner changed language. This is my final goal for this course so I don't want to cotribute just one line code or edit a document. Fortunately, there was an issue when I visited the repository again so I added a comment again to get the issue. The issue is about adding more oauth2 feature, which is new for me even I have not been touched oauth2 on my academic projects at all. So, It will be fun and I am looking forward to what I will face from this issue.