vue.js based front-end for the News Reader project.
It's intended to be decoupled from a back-end and served via Nginx
The main page shows articles provided by news-portal
back-end.
It supports:
- Search by text
- Search by period (from date - to date)
- Ordering by date, author, title
- Infinite scroll to make the page light to load and capable of showing a lot of results
The deployment is done via Nginx and controlled by super-project news-reader
.
To run locally - .env.local
npm install
To run locally, .env.local
file should be added to the project (ignored by git) with the following content (assuming that news-portal
back-end is up and running on port 8000
)
VUE_APP_API_GATEWAY=http://localhost:8000/gateway/
To run front-end
npm run serve
npm run build
npm run lint