The list of online news in Malaysia. Built on Express.js.
You will need:
- NodeJS and NPM
- MongoDB installed and running
- Install NodeJS and NPM.
- Install MongoDB using the provided link
- Create a new MongoDB database
competitor
with the collectionsentries
andpublishers
. For this tutorial we use root access to connect to MongoDB. - Now run the following commands:
git clone [email protected]:AliffAzmi/expressjs-news-competitor.git
cd expressjs-news-competitor
npm install
npm run tailwind:css
node cron/ingestPublishers.js (run faker to generate publishers)
npm run dev
node cron/ingestNews.js (cron to pull articles from feed)
Navigate to localhost:3000 to view your app.