Morning Soccer League
π Quick start
-
Start developing.
Navigate into your new siteβs directory and start it up.
Install nodejs 14.15.3 git clone cd project-folder/ npm install gatsby develop
-
Release Steps
Follow https://docs.npmjs.com/cli/v6/commands/npm-version#synopsis
npm version patch|minor|major
git push
togatsby
branch
-
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 editsrc/pages/index.js
. Save your changes and the browser will update in real time!
π§ What's inside?
A quick look at the top-level files and directories you'll see in this project.
.
βββ node_modules
βββ src
βββ .gitignore
βββ .prettierrc
βββ gatsby-browser.js
βββ gatsby-config.js
βββ gatsby-node.js
βββ gatsby-ssr.js
βββ LICENSE
βββ package-lock.json
βββ package.json
βββ README.md
-
/node_modules
: This directory contains all of the modules of code that your project depends on (npm packages) are automatically installed. -
/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β. -
.gitignore
: This file tells git which files it should not track / not maintain a version history for. -
.prettierrc
: This is a configuration file for Prettier. Prettier is a tool to help keep the formatting of your code consistent. -
gatsby-browser.js
: This file is where Gatsby expects to find any usage of the Gatsby browser APIs (if any). These allow customization/extension of default Gatsby settings affecting the browser. -
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). -
gatsby-node.js
: This file is where Gatsby expects to find any usage of the Gatsby Node APIs (if any). These allow customization/extension of default Gatsby settings affecting pieces of the site build process. -
gatsby-ssr.js
: This file is where Gatsby expects to find any usage of the Gatsby server-side rendering APIs (if any). These allow customization of default Gatsby settings affecting server-side rendering. -
src/graphql
: This directory contains new Graphql Types and Resolvers -
.github
: This directory contains all github actions -
helpers
: This directory contains functions to normalize data -
onCreateWebpackConfig.js
: To add Custom Webpack Config -
lighthouserc*.js
: Lighthouse Test Config -
static
: This directory contains files that need to be in root ofpublic
folder -
LICENSE
: This Gatsby starter is licensed under the 0BSD license. This means that you can see this file as a placeholder and replace it with your own license. -
package-lock.json
(Seepackage.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). -
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. -
README.md
: A text file containing useful reference information about your project.
π« Deploy
Deployed Version
Docker Compose
docker-compose build
docker-compose up
Docker
Build
docker build -f devops/docker/Dockerfile . -t msl-build
docker run --rm -it -p 9001:9000 msl-build
Preview
docker build -f devops/docker/preview.Dockerfile . -t msl-preview
docker run --rm -it -p 8001:8000 msl-preview
Reference
Gatsby Build
Gatsby Link Directive
- https://hashinteractive.com/blog/gatsby-data-relationships-with-foreign-key-fields/
- gatsbyjs/gatsby#25077 (comment)
Parallax
- https://gatsbyawesome.com/playful-colorful-one-page-website-with-parallax-effect/
- https://www.react-spring.io/docs/hooks/examples
Gatsby Develop
Graphql Fields
- https://dev.to/fzammetti/need-help-with-filtering-data-in-graphiql-2jpf
- https://stackoverflow.com/a/53200224
- https://hashinteractive.com/blog/gatsby-graphql-custom-field-resolver-related-types/
- https://www.gatsbyjs.com/docs/schema-root-fields/#sorting-types
- https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby/src/query/__tests__/fixtures/query-compiler-schema.graphql#L546
- https://graphql.org/graphql-js/passing-arguments/
CodeSandBox
Features
- Form Team Position
- https://codepen.io/kaolay/pen/vydwjq
- https://www.opihana.com/2017/11/08/Soccer-Formations-in-CSS-Grid/
- https://github.com/zhenfei666/a-football-pitch-CSS-/blob/master/soccer-pitch.html
- https://codepen.io/paulnoble/pen/PwOxOY
- https://github.com/jalapic/jalapic.github.io
- https://xbeat-gameserver.herokuapp.com/
- https://locomotivemtl.github.io/locomotive-scroll/
- Create schedule data - Form Builder
- Standings
- UI Components
Snippets
- https://play.tailwindcss.com/0zWIL4f17G
- https://play.tailwindcss.com/6RpJXY1101
- https://play.tailwindcss.com/lORBdGz1IF
- https://play.tailwindcss.com/2ZO1QYpEvn
- https://play.tailwindcss.com/RMo24SEeiz
- https://play.tailwindcss.com/LU782EIVYK
- Goal Stats https://play.tailwindcss.com/73rX59HMdN
- Timeline https://play.tailwindcss.com/tURuNZWLWv
- Timeline https://play.tailwindcss.com/L4TElyjsg6
- Timeline https://play.tailwindcss.com/PljQLobaeo
- Animation https://play.tailwindcss.com/Y9WxkoDmbl?file=css
- Forms https://play.tailwindcss.com/2zUvVuHxmG
Icons
Shell Script
- List files and folder in root folder
find ./ -maxdepth 1 -name node_modules -prune -o -type d -o -type f -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g'