Char char23-web
π― Focusing- CiCi
- Indiana
- 0009-0001-4159-7208
- https://orcid.org/0009-0001-4159-7208
Block or report char23-web
Report abuseContact GitHub support about this userβs behavior. Learn more about reporting abuse.
Report abuse More char23-web/README.mdChar23 Web Application
A modern web application with automated build and deployment pipeline.
Features
- π 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
Prerequisites
Before you begin, ensure you have the following installed:
Quick Start
1. Clone the Repository
git clone https://github.com/char23-web/char23-web.git cd char23-web
2. Install Dependencies
npm install
3. Start Development Server
npm start
This will start a local development server at http://localhost:8080 and automatically open it in your browser.
Available Scripts
Development
npm start- Start the development server on port 8080npm run dev- Alias fornpm start
Build & Test
npm run build- Build the application for productionnpm test- Run tests
Deployment
npm run deploy- Prepare application for deployment
Environment Configuration
-
Copy the example environment file:
cp .env.example .env
-
Update
.envwith your configuration values as needed.
Project Structure
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
Deployment
GitHub Pages
The application is configured to automatically deploy to GitHub Pages when changes are pushed to the main branch.
Setup GitHub Pages Deployment
- 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.
Manual Deployment
For other deployment platforms:
-
Build the application:
npm run build
-
Deploy the following files to your hosting provider:
index.htmlstyles.cssapp.js
CI/CD Pipeline
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
Development Workflow
-
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
Troubleshooting
Port Already in Use
If port 8080 is already in use, you can specify a different port:
npx http-server . -p 3000
Dependencies Installation Issues
Try clearing the npm cache and reinstalling:
rm -rf node_modules package-lock.json npm cache clean --force npm install
Contributing
- Fork the repository
- Create your feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request
License
This project is licensed under the ISC License.
Support
For questions or issues, please open an issue on GitHub.