News-in-radar, the web service which provides latest news for visitors.
You can visit the dmeo website here: https://news-in-radar.herokuapp.com/news
I did spend from several months to almost years seting up IT environment at my home, and one thing which always was bugging my mind is the lack of customimzed portal for WiFi entry point. However, if I just simply built plain HTML page, it's going to be boring. So after I got the web-dev skill, the first priority thing for me is to build a WiFi portal which is more than just that. The whole project is to display news contents, and all of them are done automatically.
- Web server automatically retrieve news data from the Internet.
- All news data are classified into individual category.
- All news data can be searched through keyword and other options.
- User can register an account and login to comment/like news.
- Web server recommends news from similiar news providers.
- Node.js (v14.16.0 is recommended)
- GitBash or CMder (for Windows) / terminal (for MacOS)
- Open your terminal, then clone the repo to your local.
git clone https://github.com/Richie-Yang/news-in-radar.git
- Move to repo directory.
cd news-in-radar
- Run the command below to start installing dependencies.
npm install
- Create .env file at project root directory
touch .env
or
cp .env.example .env
- Fill out valid string referring to .env.example
- Run below script to add seed data.
(Every time you run it, the previous seed data will be overwritten)
npm run seed
- Start Express server in Node.js env.
npm run start
or
- Start Express server in dev mode, which uses nodemon to start server.
npm run dev
PS: If you don't have nodemon installed, please check Nodemon first.
- Open your browser and go to http://127.0.0.1:3000.
- Click register button to create new account.
- If you did run 'npm run seed' previously, seed user credentials below are available for use:
First seed user
email: [email protected]
password: 123
Second seed user
email: [email protected]
password: 123
Seed Administrator
email: [email protected]
password: 123
- 2022/2/6 core-dev
Richie 😉