Coder Social home page Coder Social logo

theoccultcorner / a-blast-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aframevr/a-blast

0.0 0.0 0.0 101.59 MB

๐Ÿ’ฅ Save the World From the Cutest Creatures in the Universe!

Home Page: https://aframe.io/a-blast/

License: MIT License

JavaScript 89.44% Python 1.88% CSS 0.66% HTML 8.03%

a-blast-1's Introduction

Gatsby 1.0 starter

XO code style Build Status Build status Code Climate Test Coverage

Demo: https://fabien0102-gatsby-starter.netlify.com/

Storybook: https://fabien0102-gatsby-starter.netlify.com/docs/

Gatsby 1.0 starter for generate awesome static website working with a nice env development.

Warning

This starter is currently in wip (see progression to #What's inside session).

Getting started

Install this starter (assuming Gatsby is installed) by running from your CLI:

$ gatsby new my-website https://github.com/fabien0102/gatsby-starter

Run npm start (or press F5 if you are on VSCode) to hot-serve your website on http://localhost:8000.

Run npm run build to create static site ready to host (/public)

What's inside?

Files structure

 .
 โ”œโ”€โ”€ data                          // website data (included into graphQL)
 โ”‚   โ”œโ”€โ”€ author.json               // list of blog authors
 โ”‚   โ”œโ”€โ”€ avatars                   // authors avatars
 โ”‚   โ””โ”€โ”€ blog                      // all blog data (posts, images)
 โ”œโ”€โ”€ gatsby-config.js              // gatsby configuration
 โ”œโ”€โ”€ gatsby-node.js                // gatsby node hooks
 โ”œโ”€โ”€ generators                    // generators (`npm run generate`)
 โ”‚   โ”œโ”€โ”€ blog-post-generator.js    // `blog post` generator
 โ”‚   โ”œโ”€โ”€ component-generator.js    // `component` generator
 โ”‚   โ”œโ”€โ”€ page-generator.js         // `page` generator
 โ”‚   โ”œโ”€โ”€ plopfile.js               // generators entry
 โ”‚   โ”œโ”€โ”€ templates                 // all templates (handlebar notation)
 โ”‚   โ””โ”€โ”€ utils.js                  // utils scripts for generators
 โ”œโ”€โ”€ package.json
 โ”œโ”€โ”€ public                        // output folder (in .gitignore)
 โ”œโ”€โ”€ README.md                     // this file
 โ”œโ”€โ”€ src                           // sources
 โ”‚   โ”œโ”€โ”€ components                // all react components
 โ”‚   โ”œโ”€โ”€ css                       // styles
 โ”‚   โ”œโ”€โ”€ declarations.d.ts         // declarations for no typescript modules/files
 โ”‚   โ”œโ”€โ”€ graphql-types.d.ts        // graphql types (`npm run graphql-types`)
 โ”‚   โ”œโ”€โ”€ html.tsx                  // main html (required)
 โ”‚   โ”œโ”€โ”€ layouts                   // layouts
 โ”‚   โ”‚   โ””โ”€โ”€ default.tsx           // default layout (required)
 โ”‚   โ”œโ”€โ”€ pages                     // all pages
 โ”‚   โ””โ”€โ”€ templates                 // all templates (used for procedural page creation, see `gatsby-node.js`)
 โ”œโ”€โ”€ tools                         // miscs tools for dev
 โ”‚   โ””โ”€โ”€ update-post-date.js       // update post date hook
 โ”œโ”€โ”€ tsconfig.json                 // typescript configuration
 โ”œโ”€โ”€ tslint.json                   // tslint configuration
 โ””โ”€โ”€ package-lock.json             // npm lock file

Plop generators - npm run generate

To avoid any boring copy/paste, this starter-kit have many generators to permit simple bootstrap of current file pattern (eg. components/pages/blog posts). e.g. to add a new blog post first add the authors to data/authors.json and add authors' images to the data/avatars folder. Next execute 'npm run generate' and select 'Blog post'. Follow the prompts for a new post. Each blog post requires an image be added to the /data/blog/ folder prior to running 'gatsby develop'.

You can add/delete/modify any generators into /generators folder.

Be lazy and have fun!

a-blast-1's People

Contributors

caseyyee avatar cvan avatar dmarcos avatar feiss avatar fernandojsg avatar ngokevin avatar theoccultcorner avatar

Watchers

 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.