Coder Social home page Coder Social logo

timrodz / gatsby-starter-instagram-baseweb Goto Github PK

View Code? Open in Web Editor NEW
24.0 2.0 5.0 732 KB

🎒 A lightweight, minimalist Gatsby starter for creating Instagram-based portfolios.

Home Page: https://gatsby-starter-instagram-baseweb.netlify.com

License: MIT License

JavaScript 57.47% CSS 42.53%
gatsby gatsby-plugins gatsby-site hacktoberfest

gatsby-starter-instagram-baseweb's Introduction

Gatsby

Instagram & Base Web Gatsby Starter

Netlify Status

A portfolio based on your latest Instagram posts, implemented with Uber's Base Web design system. It features out-of-the-box responsive layouts, easy-to-implement components and CSS-in-JS styling.

Check the Gatsby Starter here.

πŸ’« Deploy

Deploy to Netlify

Deploy with ZEIT Now

Desktop/Tablet/Phone View

Desktop View

🎒 Features

  • Plug & Play configuration β€” All you need is an Instagram username!
  • Lightweight & Minimalist page structure. Let your work show itself.
  • Fully responsive design: Mobile, Tablet & Desktop supported.
  • Continuous deployment via Netlify or Zeit.
  • Functional components so you can take advantage of React Hooks.
  • Google Analytics ready!

Libraries & Plugins

πŸš€ Quick start

  1. Create a Gatsby site.

    Use the Gatsby CLI to create a new site, specifying this starter.

    # create a new Gatsby site using the default starter
    gatsby new my-default-starter https://github.com/timrodz/gatsby-starter-instagram-baseweb

    Note: You can change my-default-starter to whatever name you prefer.

  2. Start developing.

    Navigate into your new site’s directory and start it up.

    cd my-default-starter/
    gatsby develop
  3. Open the source code and start editing!

    Your site is now running at http://localhost:8000!

    Note: You'll also see a second link: http://localhost:8000/___graphql. This is a tool you can use to experiment with querying your data. Learn more about using this tool in the Gatsby tutorial.

    Open the my-default-starter directory in your code editor of choice and edit src/pages/index.js. Save your changes and the browser will update in real time!

Required setup

In order to start showing posts from the instagram profile of your choice, you must do the following steps:

data/config.js

This is the main configuration file for your app. It's in charge of specifying the settings of gatsby-config.js (See in section below) as well as the SEO of your website.

  • social.instagram: tells the Instagram API the username to get posts from. If the url is https://www.instagram.com/natgeotravel/, the username will be natgeotravel.
  • googleAnalyticsId: If you don't know how to find your id, please see this post.

Note: If you change certain variables, you might have to restart your app by interrupting the process and re-running gatsby develop.

module.exports = {
  // Name of your site. Can be the name of a brand, or your personal name.
  title: 'Gatsby Starter',
  // What's the purpose of this website? What can we expect from it?
  description:
    `A portfolio based on your latest Instagram posts, implemented with Uber's Base Web Design System.`,
  // Your legal name.
  legalName: 'Gatsby Starter',
  // URL to this website. If you bought `www.domain.com`, then it will be `www.domain.com`.
  url: 'https://www.robonomy.com',
  // Favicon that will display on browsers.
  logo: 'static/images/favicon.png',
  // Who made this website?
  author: 'Juan Alejandro Morais',
  // What's the website of the author?
  authorUrl: 'https://www.timrodz.com',
  // Your social media presence, in the form of usernames.
  social: {
    // tells the Instagram API the username to get posts from. 
    // If the url is `https://www.instagram.com/natgeotravel`, your username is `natgeotravel`.
    instagram: 'natgeotravel', 
    // Optional
    twitter: '@NatGeoTravel',
  },
  socialLinks: {
    // Complete URL verison of `social.instagram`.
    instagram: 'https://www.instagram.com/natgeotravel',
    // Optional
    twitter: 'https://twitter.com/NatGeoTravel',
  },
  // If applicable, your Google Analytics crawl ID.
  googleAnalyticsId: 'UA-XXXXXXXX-X',
  // Colours that represent your website.
  themeColor: '#000',
  backgroundColor: '#fff',
  // No more information than City + Country due to privacy concerns.
  address: {
    city: 'City',
    country: 'Country',
  },
  // Basic contact details.
  contact: {
    // Email address to contact you.
    email: '[email protected]',
  },
  // When was this website created?
  foundingDate: '2020',
};

🧐 What's inside?

A quick look at the top-level files and directories you'll see in a Gatsby project.

.
β”œβ”€β”€ node_modules
β”œβ”€β”€ src
β”‚   β”œβ”€β”€ components
|   β”‚   β”œβ”€β”€ common
|   β”‚   └── theme
β”‚   └── pages
β”œβ”€β”€ data
β”‚   └── config
β”œβ”€β”€ static
β”‚   └── images
β”œβ”€β”€ .gitignore
β”œβ”€β”€ .prettierignore
β”œβ”€β”€ .prettierrc
β”œβ”€β”€ .eslintrc.js
β”œβ”€β”€ gatsby-config.js
β”œβ”€β”€ LICENSE
β”œβ”€β”€ package.json
β”œβ”€β”€ yarn.lock
└── README.md
  1. /node_modules: This directory contains all of the modules of code that your project depends on (npm packages) are automatically installed.

  2. /src: This directory will contain all of the code related to what you will see on the front-end of your site (what you see in the browser) such as your site header or a page template. src is a convention for β€œsource code”.

  3. /data: This folder will contain all of the code related to website data structures. config.js contains your personal information, and it will be populated for SEO.

  4. /static: This directory will contain all assets i.e. images. Read how to use the static folder for more information.

  5. .gitignore: This file tells git which files it should not track / not maintain a version history for.

  6. .prettierignore: Tells our .prettierrc file to ignore certain folders and/or files.

  7. .prettierrc: This is a configuration file for Prettier. Prettier is a tool to help keep the formatting of your code consistent.

  8. .eslintrc.js: This is a configuration file for ESLint. ESLint is a tool to help lint and enforce rules on your code.

  9. gatsby-config.js: This is the main configuration file for a Gatsby site. This is where you can specify information about your site (metadata) like the site title and description, which Gatsby plugins you’d like to include, etc. (Check out the config docs for more detail).

  10. LICENSE: Gatsby, and this starter, are licensed under the MIT license.

  11. package.json: A manifest file for Node.js projects, which includes things like metadata (the project’s name, author, etc). This manifest is how npm knows which packages to install for your project.

  12. yarn.lock (See package.json below, first). This is an automatically generated file based on the exact versions of your npm dependencies that were installed for your project. (You won’t change this file directly).

  13. README.md: A text file containing useful reference information about your project.

πŸŽ“ Learning Gatsby

Looking for more guidance? Full documentation for Gatsby lives on the website. Here are some places to start:

  • For most developers, we recommend starting with our in-depth tutorial for creating a site with Gatsby. It starts with zero assumptions about your level of ability and walks through every step of the process.

  • To dive straight into code samples, head to our documentation. In particular, check out the Guides, API Reference, and Advanced Tutorials sections in the sidebar.

gatsby-starter-instagram-baseweb's People

Contributors

timrodz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

gatsby-starter-instagram-baseweb's Issues

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.