GithubHelp home page GithubHelp logo

news-app's Introduction

News Website

This is a news website built using the MERN stack (MongoDB, Express, React, Node.js). The website allows users to view news articles, search for articles by keyword, and create an account to save articles for later reading.

Installation

To install the project, follow these steps:

  1. Clone the repository: git clone https://github.com/devanshkansagra/News-App.git
  2. Install the dependencies: npm install
  3. Create a config.env file in the server directory with the following variables:
    DATABASE=mongodb+srv://<username>:<password>@<cluster>.mongodb.net/<database>?retryWrites=true&w=majority
    PORT=5000
    SECRETKEY=<secret-key>
    
    Replace <username>, <password>, <cluster>, <database>, and <secret-key> with your own values.
  4. Start the server: nodemon app.js
  5. Start the client: cd client && npm start

The server will start on port 5000, and the client will start on port 3000.

Usage

To use the website, follow these steps:

  1. Open the website in your browser: http://localhost:3000
  2. Browse the news articles on the home page.
  3. Search for articles by keyword using the search bar.
  4. Create an account to save articles for later reading.

Contributing

Contributions are welcome! To contribute to the project, follow these steps:

  1. Fork the repository.
  2. Create a new branch: git checkout -b my-feature-branch
  3. Make your changes and commit them: git commit -m "Add new feature"
  4. Push your changes to your fork: git push origin my-feature-branch
  5. Create a pull request.

news-app's People

Contributors

devanshkansagra avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.