Skip to content

Latest commit

 

History

History
77 lines (50 loc) · 1.63 KB

README.md

File metadata and controls

77 lines (50 loc) · 1.63 KB

MyNews

Customizable aggregator for news from around the world, allowing you to explore and follow the stories you like the most, and streamline your news experience.

About project build

This is a Next.js project uses Tailwind CSS.

Development

First, install node.js 18 or higher version.

Then install modules:

npm install
# or
yarn install
# or
pnpm install
# or
bun install

Then run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Open http://localhost:3000 with your browser to see the result.

Docker

This project containerized with Docker and here is instruction on how to run the project within a Docker container.

Prerequisites

Docker must be installed on your machine. You can download and install Docker from Docker's official website.

Steps to Run the Project

Build the Docker Image

Open a terminal and navigate to the root directory of the project where the Dockerfile is located. Run the following command to build the Docker image:

docker-compose build

Run the Container

After the image has been successfully built, run the container using:

docker-compose up

This command runs the container and maps port 3000 of the container to port 3000 on your host machine.

Accessing the Application

With the container running, open your web browser and navigate to http://localhost:3000. You should see your frontend application running.

Stopping the Container

To stop the container, execute:

docker-compose stop