My own personal website, built with React, Gatsby, Sass, and Remark
This is the codebase behind my personal website.
This site is fully copyrighted by Jack Warren; more information is available in the LICENSE file.
URL
- The base URL of the website, with the leading protocol and without the trailing slashhttps://jackwarren.info
CONTEXT
- The context for buildingdevelopment
DEPLOY_PRIME_URL
- The specific URL of the deploymentCONTEXT
is not development
or production
Dotenv is configured in this project and it is the recommended way to set these variables.
For a local development environment, create a .env
file at the root of the project containing the following:
URL=http://localhost:8000
CONTEXT=development
The GraphQL endpoint is only available during development/rendering.
The .graphqlconfig
assumes the schema will be available at Gatsby’s development-time default of http://localhost:8000/___graphql
.
You’ll need Node.js, npm, and Git.
Install the Gatsby CLI if you don’t have it already:
```shell script
npm install -g gatsby-cli
Clone down this repository:
```shell script
git clone git@github.com:jack-r-warren/jackwarren-info.git
For local development, run the development server:
```shell script
npm run develop
To make the development server available on your local network (assuming your firewall allows access to port 8000):
```shell script
npm run develop -- --host=0.0.0.0
To make a production build:
shell script
npm run build
Prettier is used for code formatting, and is called by the format
npm task.
Husky is used to run pretty-quick
before all commits.
Stylelint is used for additional SCSS linting.