DAGDA SEARCH | Back to results | Support

char23-web (Char) Β· GitHub

Source: https://github.com/char23-web

@char23-web char23-web More @char23-web View char23-web's full-sized avatar 🎯 Focusing

Char char23-web

🎯 Focusing

Block or report char23-web

Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse More char23-web/README.md

Char23 Web Application

A modern web application with automated build and deployment pipeline.

Features

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

Build & Test

Deployment

Environment Configuration

  1. Copy the example environment file:

    cp .env.example .env
  2. Update .env with 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

  1. Go to your repository settings
  2. Navigate to "Pages" under "Code and automation"
  3. Set the source to "gh-pages" branch
  4. 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:

  1. Build the application:

    npm run build
  2. Deploy the following files to your hosting provider:

    • index.html
    • styles.css
    • app.js

CI/CD Pipeline

The project includes a GitHub Actions workflow that:

  1. 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
  2. Deploy (runs only on main branch)

    • Downloads build artifacts
    • Deploys to GitHub Pages

Development Workflow

  1. Create a new branch for your feature:

    git checkout -b feature/your-feature-name
  2. Make your changes and test locally:

    npm start
  3. Commit your changes:

    git add .
    git commit -m "Description of your changes"
  4. Push to GitHub:

    git push origin feature/your-feature-name
  5. Create a Pull Request on GitHub

  6. 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

  1. Fork the repository
  2. Create your feature branch
  3. Commit your changes
  4. Push to the branch
  5. Create a Pull Request

License

This project is licensed under the ISC License.

Support

For questions or issues, please open an issue on GitHub.

@char23-web's activity is private