Giter Club home page Giter Club logo

sergiobarria.com-search's Introduction

Logo

sergiobarria.com

This is my personal website, blog and portolio showcase. Built with Next.js and Tailwind CSS. Written using TypeScript and content managed with MDX.

Overview

I created the first two versions of my portfolio using Next.js and a a couple of headless CMS's for content management, and although I didn't had any proble I decided to try and use Gatsby. I had no problem either, and really enjoyed using Gatsby, however I ended deciding to switch back to Next.js.

I really like using headless CMS's like Sanity.io, Contentful or GraphCMS. But in this ocasion I decided to manage my content by myself using markdown. After a little research I decided to try with MDX and ended with the result you see here.

Folder Structure

sergiobarria.com/
├── __tests__/
├── .github/
├── .husky/
├── .vscode/
├── cypress/
├── prisma/
├── public/
├── scripts/
├── src/
│   ├── components/
│   ├── content/
│   ├── context/
│   ├── fixtures/
│   ├── hooks/
│   ├── layouts/
│   ├── lib/
│   ├── pages/
│   ├── styles/
│   ├── types/
│   └── utils/
├── README.md
└── ...(other root files)

Most of the project content is inside the src folder.

  • components/* - All project components
  • content/* - All data used to populate blog posts, library and projects info
  • context/* - React context
  • fixtures/* - Static info used around the website
  • hooks/* - Custom hooks
  • lib/* - Script utitlities to comunicate with 3rd party services
  • pages/* - Project pages
  • styles/* - All related to tailwind styles and global css styles
  • types/* - Global Typescript styles that are used in more than one component
  • utils/* - Utility files that didn't fit any of the other categories

Tech Stack

Language: Typescript

Client: React, Next.js

Styling: Tailwind CSS, CSS modules

Databases: Planetscale with Prisma

Content: MDX, Contentlayer

API's: Spotify API, Github GraphQL API

Run Locally

  • Clone the project
  $ git clone [email protected]:sergiobarria/sergiobarria.com.git
  $ cd sergiobarria.com
  $ yarn && yarn dev

Create .env file similar to .env.example

Environment Variables

To run this project, you will need to add the following environment variables to your .env.local file

SENDGRID_API_KEY

EMAIL_SENDER

EMAIL_RECEIVER

DATABASE_URL

SPOTIFY_CLIENT_ID

SPOTIFY_CLIENT_SECRET

SPOTIFY_REFRESH_TOKEN

GITHUB_ACCESS_TOKEN

Screenshots

My pinned github repos using Github GraphQL API and Urql client for data fetching

featured projects from github

Currently playing using spotify API

currently playing card

sergiobarria.com-search's People

Contributors

sergiobarria avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.