Skip to content

InumberX/ssg-with-docker-react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Static Site Generator with Docker React

GitHub release (with filter) GitHub Release Date - Published_At GitHub last commit (by committer) GitHub issues GitHub closed issues GitHub pull requests GitHub closed pull requests

Development with Node.js

Start a shell such as PoworShell and navigate to the root of the project.

Installing packages

Install the Node.js package.

npm install

Execution of development tasks

Execute the following command.

npm run dev

The following URL will take you to the screen.

http://localhost:3000/

  • Press "Ctrl + C" to stop

Execution of Storybook

Execute the following command.

npm run storybook

The following URL will take you to the screen.

http://localhost:6006/

  • Press "Ctrl + C" to stop

Build

Execute the following command to execute the build.

npm run build

Syntax Check

npm run lint

Formatter

Check

npm run format

Check and Format

npm run format-fix

Formatter (PostCSS)

Check

npm run stylelint

Check and Format

npm run stylelint-fix

Upgrading packages

Check

npm run upgrade-check

Upgrade

npm run upgrade
npm install

Development with Docker

Start a shell such as PoworShell and navigate to the root of the project.

Launching Containers

The container is started by executing the following command.

docker compose up -d

Installing packages

Install the Node.js package.

docker compose exec node npm install

Execution of development tasks

Execute the following command.

docker compose exec node npm run dev

The following URL will take you to the screen.

http://localhost:3000/

  • Press "Ctrl + C" to stop

Execution of Storybook

Execute the following command.

docker compose exec node npm run storybook

The following URL will take you to the screen.

http://localhost:6006/

  • Press "Ctrl + C" to stop

Build

Execute the following command to execute the build.

docker compose exec node npm run build

Stopping Containers

Execute the following command to stop the container.

docker compose down

Syntax Check

docker compose exec node npm run lint

Formatter

Check

docker compose exec node npm run format

Check and Format

docker compose exec node npm run format-fix

Formatter (PostCSS)

Check

docker compose exec node npm run stylelint

Check and Format

docker compose exec node npm run stylelint-fix

About

React can be used to generate human readable HTML for static site generation.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors