Skip to main content

2 posts tagged with "nx"

View All Tags

ยท 2 min read
Abhishek Gowda
warning

I am assuming this is a new machine setup or a machine which is occasionally used and does not contain any previous setup. And for most part I will be talking about Linux machine

Setting up SSH keyโ€‹

Adding SSH key in gitlabโ€‹

  1. Sign in to gitlab
  2. Click on your user profile. You should see a dropdown modal
  3. Click preference on it. You will be taken to the preference page of your profile
  4. Look for SSH keys on the left navigation. If left navigation is closed click on "Sidebar Navigation" button or press Ctrl+\. Navigation sidebar will open.
  5. You should now be in SSH keys page
  6. Locate Add new key button
  7. Click on it โ˜๏ธ (Add new key)
  8. In your machine

Navigate to user directory

cd ~

Locate .ssh directory, it is an hidden directory, navigate within it

cd ~/.ssh

Copy public key that is generated

cat <encrypted_file_name>.pub

copy the contents

  1. Past the copied key into key text area
  2. Pick a title so you could differentiate when and where the token is located
  3. Choose Usage type. I prefer to use the same token for Authenticating and signing, you could have different token setup
  4. Choose the duration of the key when it should be invalidated.

  • My suggestion/steps would get outdated, leaving gitlab ssh key reference link

ยท One min read
Abhishek Gowda

Backgroundโ€‹

I wanted a different packages to work on different things. I don't want to have a single package that would contain everything. I wanted flexibility on creating and testing code. So went to nx package based approach.

Prerequsiteโ€‹

I used nx VS code extension to create/generate the package. This made it easier to create the package.

Setupโ€‹

We just need to follow along the setup steps and the package would be created at the end of the steps.

nx follows it's own project configuration - https://nx.dev/reference/project-configuration

For more information the above ๐Ÿ‘† link can be followed.

Referencesโ€‹