Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/willahh/coloringbook

A React application for creating personalized coloring books from imported or custom-created images.
https://github.com/willahh/coloringbook

es-toolkit react redux-toolkit storybook tailwindcss vite

Last synced: 4 days ago
JSON representation

A React application for creating personalized coloring books from imported or custom-created images.

Awesome Lists containing this project

README

        





Coloring Book


A React application for creating personalized coloring books from imported or custom-created images.


Explore the docs Β»




Live Demo
Β·
Report Bug
Β·
Request Feature

## Features ✨
- Import images and convert them into outlines for coloring.
- Draw custom designs directly in the app.
- Organize pages into a book format, ready for printing.
- Simple and intuitive interface for all age groups.

## Usage πŸ“–
Upload an image to convert it into a coloring outline.
Use the drawing tool to create custom designs.
Arrange pages in the desired order.
Download the final book as a PDF.

## Stack 🧰
This project is built with the following technologies and tools:

- **TypeScript**: For type-safe JavaScript development.
- **React**: To build the user interface. Documentation referenced directly in the app - [React Documentation](https://react.dev/reference/react).
- **Server API**: For server-side rendering or data fetching.
- **Client API**: For client-side interactions and components.
- **Vite**: A fast and modern build tool - [Learn more](https://vite.dev/).
- **Tailwind CSS**: For utility-first styling with rapid development.
- **GitHub Actions**: For automated deployment workflows.

## Project Structure πŸ“‚
```
coloring-book-creator/
β”œβ”€β”€ public/ # Static assets
β”œβ”€β”€ src/
β”‚ β”œβ”€β”€ components/ # Reusable UI components
β”‚ β”œβ”€β”€ pages/ # Application pages (e.g., Home, Editor)
β”‚ β”œβ”€β”€ utils/ # Helper functions (e.g., image conversion)
β”‚ β”œβ”€β”€ App.tsx # Main App component
β”‚ β”œβ”€β”€ index.tsx # Application entry point
β”‚ └── styles/ # Global and component-specific styles
β”œβ”€β”€ package.json
└── README.md
```

## Installation πŸ› οΈ

1. Clone this repository:
```bash
git clone https://github.com/willahh/coloringbook.git
cd coloringbook
```

2. Install dependencies:
```bash
npm install
```

3. Start the development server:
```bash
npm start
# Open your browser and navigate to http://localhost:3000.
```

## Project setup
```sh
npm create vite@latest # Install Vite, Typescript is setup automatically (config files)
npm install -D tailwindcss postcss autoprefixer # Install tailwindcss, postcss and autoprefixer
npm install -D @types/node # Install node types (fix an issue with a specific vite.config.ts)
npm install vite-plugin-svgr --save-dev # To manage the import of svg icons
npx tailwindcss init -p
npm install motion
npm install react-router-dom
npm install @types/react-router-dom
npx storybook@latest init
npm install @storybook/manager-api @storybook/theming --save-dev
npm install --save-dev storybook-dark-mode
npm install @heroicons/react # https://heroicons.com/
npm install @headlessui/react # https://headlessui.com/react/menu
npm install @popperjs/core # A JavaScript library to position floating elements and create interactions for them. - https://floating-ui.com/
npm install react-popper @popperjs/core # Floting-ui React wrapper - https://popper.js.org/react-popper/v2/ -
```

### Theming
- https://uicolors.app/create - Tailwind CSS Color Generator

## Build css
```sh
cd dev
npm run dev
```

## Build for production
The destination folder is in the folder "/docs" to match Github Page default configuration.

```sh
cd dev
npm run build
```

## Deploy for production
The current production environment is on **Github Page**.
The url is https://willahh.github.io/coloringbook/

To deploy to production :
```sh
cd dev
npm run build
git push # Push to master branch on github.com/willahh/coloringbook

Github pages automatically trigger a pipeline after the push.
Pipeline can be monitored on https://github.com/willahh/coloringbook/actions.
Build time can last between 1 to 5 minutes.
```
Capture d’écran 2024-12-16 aΜ€ 16 41 00

## Build and deploy with Github Action

## Acknowledgments πŸ™
Inspired by the creative possibilities of coloring books.
Thanks to open-source libraries and the developer community!