A simplified clone of the Inshorts news aggregation platform. This project uses React.js for the frontend and Node.js with MongoDB (Mongoose) for the backend.
Make sure you have Node.js and npm installed on your machine.
-
Clone the repository:
git clone https://github.com/your-username/inshorts-clone.git
-
Navigate to the project directory:
cd inshorts-clone -
Install dependencies:
npm install
-
Navigate to the
front-enddirectory:cd front-end -
Install frontend dependencies:
npm install -
Run the frontend development server:
npm start
-
Create a .env file:
Go to the back-end and there is Database folder inside there is a file db.js file inside put your Mongodb url.
Create a
.envfile in the root of theback-enddirectory with the following content:DB_USERNAME=your_mongodb_username DB_PASSWORD=your_mongodb_password
Replace
your_mongodb_usernameandyour_mongodb_passwordwith your password and username -
Navigate to the server directory:
cd back-end -
Install backend dependencies:
npm install
-
Run the backend server:
npm start
This will start the backend server.