Build a local news site where users can log in an post local news and events: Packages: sharp, nodemailer.
A simple website that displays news articles written by its registered users.
- Each article should include as a minimum the following fields:
- Headline
- Short summary
- Photo
- Multi-line content
- Date added (auto generated by the site).
- Users, whether logged in or not, can see a list of all the news articles with the most recent at the top displayed on the home page.
- Each article displayed on the home page should include only the headline, thumbnail photo, date added and short summary.
- Clicking on any of these articles should load a page that displays the entire article (all fields). Once registered and logged in, users can write new articles which automatically appear on the home page.
- The admin user should check and release articles before they are made available to site users.
- All new articles should be marked as pending and hidden from the public's view until an admin person logs in, checks the content and flags it as released.
- Users can edit existing articles but this will reflag them as pending.
- The user should be prompted if they try to add or edit an article with missing fields.
- The site should be fully searchable and users should be able to rate articles written by others and receive a daily email summary.
- Users should be able to full-text search the news articles. The search should include text in the title, short summary and multi-line content.
- Logged in users can rate other people's articles using a 5 star scale.
- The average rating should be displayed next to each article both on the home page list and when viewing the entire article.
- Articles can have more than one photo.
- Each morning at 08:00 registered users should receive an email summarising all the articles added over the past 24 hours.
- If no new articles have been added the email should not be sent.