Skip to content
View Dinujaya-Sandaruwan's full-sized avatar
📚
Learning Assembly + C
📚
Learning Assembly + C

Highlights

  • Pro

Organizations

@ict-crew

Block or report Dinujaya-Sandaruwan

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Hi 👋, I'm Dinujaya S...

A passionate MERN developer from Sri Lanka

  • 🏢 I’m currently working as a Freelancer

  • 🌱 I’m currently learning React advance concepts and React Native

  • 👯 I’m looking to collaborate on Lodgelink.net

  • 👨‍💻 All of my projects are available at dinujaya.me

  • 📝 I regularly write blog posts on blog.dinujaya.me

  • 💬 Ask me about anything related to Information and Communication Technology

  • 📫 How to reach me [email protected]

🌐 Socials:

Facebook LinkedIn Stack Overflow X YouTube

💻 Tech Stack:

Apache Groovy C C# CSS3 Dart Go HTML5 JavaScript Markdown PHP PowerShell Python Rust Shell Script TypeScript Windows Terminal AWS Azure Firebase GithubPages Google Cloud Heroku Vercel Vultr Angular Anaconda Angular.js Bootstrap Bun Chakra Chart.js DaisyUI Deno JS Django Electron.js Expo Express.js FastAPI Flask Gulp JWT MUI NPM Next JS NodeJS PNPM Pug Qt React Native React React Query React Router React Hook Form Redux SASS Semantic UI React Socket.io Styled Components TailwindCSS Vite Vue.js Webpack WebGL Web3.js WordPress Yarn Apache Nginx Firebase MariaDB MicrosoftSQLServer MongoDB MySQL Postgres SQLite Supabase Adobe Adobe After Effects Adobe Audition Adobe Creative Cloud Adobe Fonts Adobe Illustrator Adobe Lightroom Adobe Lightroom Classic Adobe Photoshop Adobe Premiere Pro Adobe XD Figma AZUREDEVOPS ANSIBLE Docker Ansible Babel Docker Plex Kubernetes Notion Pi-Hole Postman TOR


Need to know more details about me. 😋


Simple code to use my bio data API ( https://api.dinujaya.me/ ) hosted in DigitalOcean VPS

const API_BASE_URL = "https://api.dinujaya.me";

// Function to sign in and obtain access token
const signIn = async (
  username: string,
  password: string
): Promise<string | null> => {
  try {
    const response = await axios.post<{ accessToken: string }>(
      `${API_BASE_URL}/sign`,
      { username, password }
    );
    return response.data.accessToken;
  } catch (error) {
    console.error("Error signing in:", error);
    return null;
  }
};

// Function to get bio data using access token
const getBioData = async (accessToken: string): Promise<any> => {
  try {
    const response = await axios.get(`${API_BASE_URL}/`, {
      headers: {
        Authorization: `Bearer ${accessToken}`,
      },
    });
    return response.data;
  } catch (error) {
    console.error("Error fetching bio data:", error);
    return null;
  }
};

useEffect(() => {
  const getData = async () => {
    // Example usage
    const username = "your_username";
    const password = "your_password";

    // Sign in and obtain access token
    const accessToken = await signIn(username, password);

    if (accessToken) {
      // Get bio data using access token
      const bioData = await getBioData(accessToken);
      console.log("Dinu's details: :", bioData);
    } else {
      console.log("Failed to obtain access token.");
    }
  };

  getData();
}, []);

Pinned Loading

  1. dinujaya.me dinujaya.me Public

    Dinujaya's Portfolio is a dynamic web application built using React, TypeScript, and SCSS. It serves as a comprehensive social media platform, showcasing the creator's life through a full timeline,…

    TypeScript

  2. Auto-Upload-Videos-To-Youtube Auto-Upload-Videos-To-Youtube Public

    The purpose of this project is to search for a random keyword on YouTube using the YouTube API, download up to five high-definition videos related to the keyword, and upload one of them to YouTube …

    Python

  3. Auto-screenshots-for-DP-Education Auto-screenshots-for-DP-Education Public

    This software takes a screenshot of the note and stores it when the teacher leaves the screen

    Tcl 1

  4. Guess-This-Code Guess-This-Code Public

    I created my own version of guessthiscode.com --> https://guess-code.dinujaya.com/

    HTML 1

  5. Code-With-Mosh-Node-JS-Course Code-With-Mosh-Node-JS-Course Public

    I started to learn Node from Mosh Hamedani's Node JS course and this repository contains all the code I wrote while this course.

    JavaScript

  6. Code-Wth-Mosh-React-18-Course Code-Wth-Mosh-React-18-Course Public

    I started to learn React 18 from Mosh Hamedani's React JS course and this repository contains all the code I wrote while this course.

    TypeScript