https://github.com/ore-codes/news-hub-fe
https://github.com/ore-codes/news-hub-fe
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ore-codes/news-hub-fe
- Owner: ore-codes
- Created: 2025-07-04T16:37:09.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-07-05T05:37:04.000Z (12 months ago)
- Last Synced: 2025-07-05T06:29:52.969Z (12 months ago)
- Language: TypeScript
- Size: 48.8 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# News Hub Frontend
This is a Next.js frontend for the News Hub project. It is fully containerized using Docker Compose for easy local development and deployment.
## Prerequisites
- [Docker](https://www.docker.com/get-started) and [Docker Compose](https://docs.docker.com/compose/) installed
- [Git](https://git-scm.com/) for cloning the repository
## Quick Start
1. **Clone the repository:**
```sh
git clone https://github.com/ore-codes/news-hub-fe.git
cd news-hub-fe
```
2. **Copy the example environment file and edit as needed:**
```sh
cp .env.local.example .env.local
# Edit .env.local if necessary
```
3. **Build and start app:**
```sh
docker compose up --build -d
```
Or if you have npm installed, you can run
```sh
npm run docker:prod
```
This will build the Next.js and nginx containers with production settings.
4. **For hot reloading**
```sh
docker-compose -f docker-compose.dev.yml up --build -d
```
Or if you have npm installed, you can run
```sh
npm run docker:dev
```
This will build the Next.js and nginx containers with development settings.
5. **Access the application:**
- Prod: [http://localhost:3000](http://localhost:3000)
- Dev: [http://localhost:5173](http://localhost:5173)