A modern web application with automated build and deployment pipeline.
- 🚀 Quick setup and development workflow
- 🔧 Automated CI/CD pipeline with GitHub Actions
- 📦 Modern dependency management with npm
- 🌐 Ready for deployment to GitHub Pages
- 💻 Local development server
- ⚙️ Environment configuration support
Before you begin, ensure you have the following installed:
git clone https://github.com/char23-web/char23-web.git
cd char23-webnpm installnpm startThis will start a local development server at http://localhost:8080 and automatically open it in your browser.
npm start- Start the development server on port 8080npm run dev- Alias fornpm start
npm run build- Build the application for productionnpm test- Run tests
npm run deploy- Prepare application for deployment
-
Copy the example environment file:
cp .env.example .env
-
Update
.envwith your configuration values as needed.
char23-web/
├── .github/
│ └── workflows/
│ └── blank.yml # CI/CD pipeline configuration
├── index.html # Main HTML file
├── styles.css # Stylesheet
├── app.js # Application JavaScript
├── package.json # Dependencies and scripts
├── .env.example # Environment configuration template
├── .gitignore # Git ignore rules
└── README.md # This file
The application is configured to automatically deploy to GitHub Pages when changes are pushed to the main branch.
- Go to your repository settings
- Navigate to "Pages" under "Code and automation"
- Set the source to "gh-pages" branch
- Save the changes
The CI/CD pipeline will automatically build and deploy your application on every push to main.
For other deployment platforms:
-
Build the application:
npm run build
-
Deploy the following files to your hosting provider:
index.htmlstyles.cssapp.js
The project includes a GitHub Actions workflow that:
-
Build and Test (runs on every push and pull request)
- Checks out the code
- Sets up Node.js environment
- Installs dependencies
- Runs tests
- Builds the application
- Uploads build artifacts
-
Deploy (runs only on main branch)
- Downloads build artifacts
- Deploys to GitHub Pages
-
Create a new branch for your feature:
git checkout -b feature/your-feature-name
-
Make your changes and test locally:
npm start
-
Commit your changes:
git add . git commit -m "Description of your changes"
-
Push to GitHub:
git push origin feature/your-feature-name
-
Create a Pull Request on GitHub
-
Once approved and merged, the application will automatically deploy
If port 8080 is already in use, you can specify a different port:
npx http-server . -p 3000Try clearing the npm cache and reinstalling:
rm -rf node_modules package-lock.json
npm cache clean --force
npm install- Fork the repository
- Create your feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request
This project is licensed under the ISC License.
For questions or issues, please open an issue on GitHub.