- ReactJS
- Node.js
- Mongodb (database)
- HTML/CSS
- APIs(I use to fetch the news from newsapi.org)
- You'll have to make an account on mongodb.com.
- Create a cluster.
- Create a database.
- click on connect to get the link to connect your code to the database.
- you'll get the link that you have to add to the server.js file in src/Pages at
connectDB(Mongodb_database_connection_string)
- change the
<password>
section and add your actual "password" that you set for your database.
- go to the src folder using
cd src
- go to the Pages folder using
cd Pages
- start the server from the server.js file. type
node server.js
to run the main file and it will show the output like below. - Then open new terminal and type
npm start
to run the reactJS files. - you'll get the output as you see above images.