Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cypherpunkarmory/holepunch-site
Repository for storing and deploying the holepunch.io site
https://github.com/cypherpunkarmory/holepunch-site
Last synced: 9 days ago
JSON representation
Repository for storing and deploying the holepunch.io site
- Host: GitHub
- URL: https://github.com/cypherpunkarmory/holepunch-site
- Owner: CypherpunkArmory
- License: mit
- Created: 2018-10-19T18:19:26.000Z (about 6 years ago)
- Default Branch: develop
- Last Pushed: 2023-01-11T20:31:01.000Z (almost 2 years ago)
- Last Synced: 2024-04-23T05:48:48.818Z (7 months ago)
- Language: JavaScript
- Size: 2.96 MB
- Stars: 3
- Watchers: 7
- Forks: 2
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Holepunch.io Website
This project was bootstrapped with [Gatsby](https://github.com/gatsbyjs/gatsby).
Below you will find some information on how to perform common tasks.
## Available Scripts
In the project directory, you can run:
### `npm install`
Install packages for first time setup.### `npm start`
Runs the app in the development mode.
Open [http://localhost:8000](http://localhost:8000) to view it in the browser.The page will reload if you make edits.
You will also see any lint errors in the console.### `npm run build`
Gatsby will perform an optimized production build for your site, generating static HTML and per-route JavaScript code bundles.
### Deploying
If you want to deploy to _production_ you should just merge this to master and let CI take care of it.
To deploy to a "pushbutton" environment follow these instructions.
1. Install go-task: `curl -sL https://taskfile.dev/install.sh | sh`
2. Prepare the environment: `task prepare WORKSPACE=`
3. For your next deploy you can just do `task deploy WORKSPACE=`
4. When you are done: `task destroy WORKSPACE=`View your deploy at `.testpunch.io`
The workspace name should be a single short, memorable word.
## π§ What's inside?
A quick look at the top-level files and directories you'll see in a Gatsby 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
βββ yarn.lock1. **`/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. **`.gitignore`**: This file tells git which files it should not track / not maintain a version history for.
4. **`.prettierrc`**: This is a configuration file for [Prettier](https://prettier.io/). Prettier is a tool to help keep the formatting of your code consistent.
5. **`gatsby-browser.js`**: This file is where Gatsby expects to find any usage of the [Gatsby browser APIs](https://www.gatsbyjs.org/docs/browser-apis/) (if any). These allow customization/extension of default Gatsby settings affecting the browser.
6. **`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](https://www.gatsbyjs.org/docs/gatsby-config/) for more detail).
7. **`gatsby-node.js`**: This file is where Gatsby expects to find any usage of the [Gatsby Node APIs](https://www.gatsbyjs.org/docs/node-apis/) (if any). These allow customization/extension of default Gatsby settings affecting pieces of the site build process.
8. **`gatsby-ssr.js`**: This file is where Gatsby expects to find any usage of the [Gatsby server-side rendering APIs](https://www.gatsbyjs.org/docs/ssr-apis/) (if any). These allow customization of default Gatsby settings affecting server-side rendering.
9. **`LICENSE`**: Gatsby is licensed under the MIT license.
10. **`package-lock.json`** (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).**
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. **`README.md`**: A text file containing useful reference information about your project.
13. **`yarn.lock`**: [Yarn](https://yarnpkg.com/) is a package manager alternative to npm. You can use either yarn or npm, though all of the Gatsby docs reference npm. This file serves essentially the same purpose as `package-lock.json`, just for a different package management system.