Introducing Devtree.link - Create your Mini portfolio in minutes.

Introducing Devtree.link - Create your Mini portfolio in minutes.

ยท

6 min read

Hello everyone, I'm Vikas Rai and I hope you all are doing good. This is the first time, I have participated in Hashnode Hackathon. Here is my Project - Devtree.link (Create your Mini portfolio in minutes).

Dapp Introduction

Devtree.link is a website that you can use to create your mini portfolio, which contains your image and your social and dev profile links.

It's basically a ( linktr.ee clone ), but I have tried to make a web3 version of it.

It's based on web3, so you can use your Metamask Wallet to connect to the dapp and after that, you can fill a simple form in which you can add your social link/dev profile links.

I choose to host the Application on Linode servers which is one of the requirement of the Hackathon to use any one service of Linode.

And that's done, now share your profile URL anywhere you want.

So this is the project that I have created:

Demo Link of Project: Devtree.Link

Demo Link of My Profile: My Devtree Profile

Landing Page - Dark Mode

devtree-link-front-dark.PNG

Landing Page - Light Mode

devtree-link-front-light.PNG

Dashboard

devtree-dashboard.PNG

My Profile Page

devtree-link-my-profile.PNG

Community Chat

devtree-chat.PNG

Features

  1. First thing, It helps you create your mini portfolio, in case you don't have your portfolio.
  2. You can add a social link or dev profile like Github or any other if you have one.
  3. Share your dev tree anywhere you want.
  4. It also has a community chat section, where you can chat with other developers and share your thoughts.

Inspiration

Well, honestly, I wanted to create my version of (linktree).

I have created this for those, who don't like to create their portfolio or I say don't want to waste their time creating one.

But they need to have some sort of portfolio, which helps them to share their important social or dev profile links ( Like their Blog link, Github Profile Link, Twitter Profile, etc.)

  1. First, visit the devtree.link , and use your Metamask wallet to connect to the Dapp.
  2. Then, go to Settings Tab and change your Username.
  3. Go to Links Tab and add your Social/Dev Profile Links.
  4. Update your Image in the Settings Tab.
  5. Visit My Profile Tab to see your Devtree.
  6. Share your Devtree profile link with others using the Share Button.

Tech Stack Used

This is my all-time favorite tech stack:

  • Next.js (Fullstack Framework for React.js).
  • React.js (Front-end UI Library).
  • Tailwind CSS (CSS Framework).
  • Moralis.io (Web3 Provider)
  • Supabase.io (For Database)
  • Linode (For Hosting the App)

The Code

You can get the code from my GitHub Repository.

Steps to run the app locally:

Step-1: Git Clone the project

   git clone https://github.com/raiv200/devtree-link.git my-project

Step-2: Install the dependencies

  npm install

Step-3: Create a .env.local file and add these 4 environment variables


NEXT_PUBLIC_APP_ID=" "

NEXT_PUBLIC_SERVER_URL=" "

NEXT_PUBLIC_SUPABASE_URL=" "

NEXT_PUBLIC_SUPABASE_ANON_KEY=" "

Step-4: Create an account on Moralis.io and Supabase.io and get the environment variables.

You can get the first two environment variable by creating project on moralis.io.

  1. After creating project, you will see, a settings tab.
  2. Click on the settings tab , and the you will see DappCredentials.
  3. Copy Dapp URL and Paste in between the quotes of NEXT_PUBLIC_SERVER_URL.
  4. Then Copy Application URL and Paste in between the quotes of NEXT_PUBLIC_APP_ID.

And that's it for the Moralis Part.

And the next two environment variable by creating account on Supabase.io.

  1. After creating account, you will see a dashboard and you were asket to create a project, you can name it anything.

  2. You will see some icons on the left side menu , one of them will be a settings icon, click on it and then you will see the API tab, click on it and grab you credentials

Copy the Project URL and the Anon Key and paste it in the environment variables.

  1. Now, Click on database icon , which will on the left side menu .

  2. After that click on the Table tab and create a new table, just fill the (Name of the Table ) and the Description Field) and save it.

  3. Then go to Table Editor, and inside that add columns to the table.

    Add these column one by one:

               1. userName - type(Varchar)
               2. ethAddress - type(Varchar)
               3. blogLink - type(Varchar)
               4. portfolioLink- type(Varchar)
               5. githubLink - type(Varchar)
               6. twitterLink- type(Varchar)
               7. linkedinLink- type(Varchar)
               8. sponsormeLink- type(Varchar)
               9. imageUrl- type(Varchar)
    

Now you Database is ready.

Step-5: Start the development server

Now open your project in your favorite IDE , (VsCode) and then start the development server.

   npm run dev

Note: In Production mode , you need to one more thing, Go to the ShareButton.jsx componennt and edit the URL constant with your Website URL link.

Deployment of the App

As the hackathon says, we need to use any one service of Linode.

So, I choose to host the app on Linode servers.

linode-new.png

Linode is a cloud hosting platform that services over 400,000 customers, including The Onion, Creative Commons, and WP Engine. The Linode Manager allows customers to create, manage, and deploy virtual servers and services through a web interface.

linode-dashboard

I wanted to discuss the deployment in detail butI don't want to unneccesarily increase the length of the article.

You can follow this article if you want to deploy a Nextjs/React.js Application on an Ubuntu Server.

How to Deploy a Next.js Application to an Ubuntu Server

Upcoming Features

I am planning to add some more features , which will make this website even more useful for the users.

  • Portfolio Section on the My-Profiles page, which will showcase your Dev Projects.
  • Appearance Tab , through which you can customize the backgroud color or styles of the My Profile Page.

and many more features are yet to come.

Feedback and Conclusion

I have added limited features to the app as I was working alone on this project, but I have planned to add some more features to the app in future.

I have made the UI design of the app fully responsive.

Since , this project is Open-Source, so if anyone would like to contribute to the project, then it will be awesome.

Challenges I Faced ๐Ÿ˜ฅ

I'm a more Front-end developer and wanted to make the app's design as cool as possible, but I enjoyed building this project as a full-stack project and learned new tech like (Moralis.io and Supabase.io).

And also, It was first time I am Hosting an App on a Server , till now I have only deployed apps on heroku, netlify and Vercel ๐Ÿ˜“.

I โค๏ธ creating things, solving problems, and learning new technologies and it involved all of them..

I had used moralis.io in my project before, but I have not used supabase in any one of my projects.

I would appreciate your feedback on the project.

Thank you for reading the blog and viewing the project.

  1. Next.js Docs
  2. React.js Docs
  3. TailwindCSS Docs
  4. Moralis.io Docs
  5. Supabase.io Docs
  6. Linode.io Docs
  7. GitHub Link For Project
  8. Demo Link for Project

Connect with me:

  1. Devtree Profile Link
  2. Twitter Link
  3. LinkedIn link
  4. Facebook Link
  5. Github Link

Did you find this article valuable?

Support Nextjs Dev by becoming a sponsor. Any amount is appreciated!