Giter Club home page Giter Club logo

akron-stock-music's Introduction

Akron Stock Music

Background

A place for non-profits to configure stock music made by artists from Akron, OH.

Supporting Services/Technologies

Local Development

Configuration Steps

This site requires a .env file with the following properties:

accessToken
spaceId
trackingId

The spaceID and accessToken are from Contentful.
The trackingId is from Google Analytics

You'll also need to add these three environment variables in Netlify by going to Setting > Build & Deploy > Environment.

Setup

npm i - Install your dependencies
Then Either
gatsby develop - Build the assets in development mode and start a web server
Or (Hopefully before you commit!)
gatsby build - Build the assets in production mode
gatsby serve - Serve the assets in production mode

Running Tests Locally

Lol

Deploying With Netlify

  1. Follow this guide to connect Netlify and GitHub and deploy the site
  2. Enable Netlify forms through their UI

Things To Note

  • Since Gatsby pre-runs all of your GraphQL queries when the site is built, you'll need to re-deploy when content changes are made in Contetful unless you follow this guide on setting up a build hook that Contentful can kick off on publish.

  • Static pages for each blog in Contentful are built in the gatsby-node.js file using the ./template/genre.js file as a template and using the name property from Contentful as the URL slug.

  • When you update your Node version (and maybe other times?) you'll need to use the "Clear Cache And Deploy" in Netlify instead of the regular deploy trigger.

Content Model

You'll need to set the content model up in Contenful to ensure your GraphQL queries will work. Contact me and I'll ship the model over.

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.