This is a Next.js project bootstrapped with create-next-app
.
In order to run the project from a container we need node>=16
, npm>=7
and docker>=20
installed on our development machines.
A quick look at the top-level files and directories you'll see in a Next.js project.
├──── beta.e-ther-inc.com
│ ├── .github/
│ ├── .husky/
│ ├── pages/
│ ├── public/
│ ├── styles/
│ ├── .czrc
│ ├── .editorconfig
│ ├── .env.development
│ ├── .env.production
│ ├── .eslintrc.js
│ ├── .gitattributes
│ ├── .gitignore
│ ├── .npmrc
│ ├── Dockerfile
│ ├── next.config.js
│ ├── npm-shrinkwrap.json
│ ├── package.json
│ ├── README.md
│ └── release.config.js
Clone the package via git
:
git clone [email protected]:e-ther-inc/beta.e-ther-inc.com.git
Go into the cloned repository and install node
dependencies:
npm ci
This repository is featuring granular controls fully orthogonal to environment variables as specified by the twelve-factor app guidelines.
In order for the application to run we need the following environment variables set similar to the following example.
Without these variables the application will fail to start, so in order for the app to start locally we need to create an .env
file with the following values:
SASS_PATH="node_modules"
They are currently set to default in their per environment files .env.development
and .env.production
.
To develop locally just run:
npm start
This repository build automatically to ghcr.io
but you can always test the implementation:
docker build . -t beta.e-ther-inc.com
docker run -dit --rm -p 8080:80 --name beta.e-ther-inc.com beta.e-ther-inc.com
This repository uses husky
with pre-commit and message hooks. All you need to do after staging some files is to run:
npm run push