GitHost is a platform designed to streamline the deployment and management of web applications using Next.js, Supabase, and Cloudflare Workers. This repository contains the source code for the frontend, backend, and Cloudflare Worker components.
- Framework: Next.js
- Styling: Tailwind CSS
- Environment Variables: Managed via
.env.local
- Development:
- To start the development server, run:
npm run dev
- The application will be available at localhost:3000.
- To start the development server, run:
- Framework: Express.js
- Database: Supabase
- Queue Management: BullMQ
- Environment Variables: Managed via
.env
- Docker Configuration: Includes Dockerfile and docker-compose.yml for containerization
- Development:
- To start the development server, run:
npm install npm run dev
- The service will be available at localhost:3000.
- To start the development server, run:
- Functionality: Proxies requests, serves static files, and manages CORS
- Configuration: Managed via
wrangler.toml
- Testing: Uses Vitest for unit and integration tests
- Deployment:
- Use Wrangler to deploy and manage Cloudflare Workers.
The NGINX server is configured to redirect HTTP traffic to HTTPS and proxy requests to the backend service running on localhost.
- Dockerfile: Defines the build process for the upload-service.
- docker-compose.yml: Manages multi-container applications, specifying environment variables and volume mappings.
- Wrangler: Used for deploying and managing Cloudflare Workers.
- R2 Storage: Utilized for storing and serving static assets.
- Node.js and npm
- Docker and Docker Compose
- Cloudflare account for Worker deployment
- Supabase account for database management
-
Clone the repository:
git clone https://github.com/your-repo/githost.git cd githost
-
Install dependencies:
npm install
-
Configure environment variables:
- Rename
.env.example
to.env
and update the necessary variables.
- Rename
-
Run the services:
- Use Docker Compose to start all services:
docker-compose up
- Use Docker Compose to start all services:
-
Access the application:
- Frontend: localhost:3000
- Backend: localhost:3000
We welcome contributions to improve GitHost. Please fork the repository and submit a pull request with your changes.
This project is licensed under the MIT License. See the LICENSE file for details.
Please file feedback and issues on the GitHub Issues page.
For more examples and detailed guides, refer to the respective documentation of the technologies used.