Giter Site home page Giter Site logo

shadowjonathan / hacktoberfest2019 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from greenberrynl/hacktoberfest2019

0.0 1.0 0.0 1.67 MB

Workshop repo for Hacktoberfest 2019 https://www.meetup.com/Hacktoberfest-Utrecht/events/264956296/

Home Page: https://hacktoberfest.greenberry.dev/

License: MIT License

JavaScript 100.00%

hacktoberfest2019's Introduction

Hacktoberfest 2019 @ Greenberry

This repo is used for the workshop given at the kickoff Meetup of Hacktoberfest 2019 at Greenberry in Utrecht.

๐Ÿค” What to do?

Add your info to the people.json

Example format

//...
{
  "name": "Ramon Gebben",
  "github": "@RamonGebben",
  "twitter": "@RamonGebben",
  "linkedin": "https://www.linkedin.com/in/ramon-gebben-88039b85"
}
//...

Submit your PR.

๐Ÿง What's inside?

A quick look at the files and directories you'll see in this project.

.
โ”œโ”€โ”€ node_modules
โ”œโ”€โ”€ cypress
  โ”œโ”€โ”€ fixtures
  โ”œโ”€โ”€ integration         <--- Integration tests live here
    โ”œโ”€โ”€ auth
        โ”œโ”€โ”€ sign-up.js
        โ”œโ”€โ”€ sign-in.js
        โ”œโ”€โ”€ sign-out.js
โ”œโ”€โ”€ src
  โ”œโ”€โ”€ components
    โ”œโ”€โ”€ MyComponent
        โ”œโ”€โ”€ index.js
        โ”œโ”€โ”€ index.spec.js
  โ”œโ”€โ”€ images
  โ”œโ”€โ”€ pages
    โ”œโ”€โ”€ route-name.js     <--- Pages folder is used by Gatsby to generate pages
    โ”œโ”€โ”€ about.js
  โ”œโ”€โ”€ templates
    โ”œโ”€โ”€ PostTemplate
        โ”œโ”€โ”€ index.js
        โ”œโ”€โ”€ index.spec.js
  โ”œโ”€โ”€ utils
    โ”œโ”€โ”€ myUtil
        โ”œโ”€โ”€ index.js
        โ”œโ”€โ”€ index.spec.js
โ”œโ”€โ”€ .gitignore
โ”œโ”€โ”€ gatsby-browser.js
โ”œโ”€โ”€ gatsby-config.js
โ”œโ”€โ”€ gatsby-node.js
โ”œโ”€โ”€ gatsby-ssr.js
โ”œโ”€โ”€ LICENSE
โ”œโ”€โ”€ package.json
โ”œโ”€โ”€ yarn.lock
โ””โ”€โ”€ README.md

๐ŸŽฎ Scripts

build Will generate the optimized static website.

yarn build

develop Will start development server

yarn develop

start Is a short cut to yarn develop

yarn start

serve Uses Gatsby's webserver to serve the static build

yarn serve

lint Ensures proper code format

yarn lint

test Runs all tests

yarn test

Testing

Cypress For end-to-end/integration testing we use Cypress. All integration tests are kept in /cypress/integration/ folder. To keep this folder organized, convention is to create folders per flow or type of scenario.

Let's say we have an application with 2 roles. Each role might have a different journey through the signing flow. Both flows would be "sign-in" however the tests should be different, so we would structure the files like so;

/cypress
  /integration
    /role-admin
      - sign-in.js
    /role-user
      - sign-in.js

Percy Percy is an all-in-one visual review platform. It is integrated with Cypress so we are able to create visual reference points to validate across different versions of the app/website.

Usage:

//...Within a Cypress test
it('should be able to visit to /posts', () => {
  cy.visit(`${Cypress.env('appUrl')}/posts`);

  // Create snapshot
  cy.percySnapshot();
});

hacktoberfest2019's People

Contributors

the-mo avatar shadowjonathan avatar ramongebben avatar vaibhav111tandon avatar shash137 avatar toddmerrill avatar iamapurva avatar floristenhove avatar explodingcamera avatar naruepanart avatar ipenburg avatar vidushijain30 avatar veltaine avatar wilbo avatar

Watchers

James Cloos 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.