Skip to content

Latest commit

 

History

History
105 lines (90 loc) · 2.65 KB

README.md

File metadata and controls

105 lines (90 loc) · 2.65 KB

Technical test - Allfunds

Project Description

This project is a technical test demonstration of a full-stack application. It consists of two pages:

  1. News feed: Displays a list of different articles fetched from the database by calling the API endpoint that retrieves them. This articles can be archived.
  2. Archived news: Displays a different list of articles that are also fetched from the DB but that have been archived. These can be permanently deleted.

Tech stack

  1. A frontend built using Angular and styled with Bootstrap.
  2. The backend is powered by Node.js and Express.js to handle the server-side logic with different API endpoints.
  3. As for the database I used an atlas mongoDB cluster to manage stored data.

Dependencies

  • Node.js: v20.16.0
  • Angular: 17.3.10
  • Boostrap: 5.3.3
  • Express: 4.21.1
  • Mongod: 2.0.0
  • Cors: 2.8.5

Setup and Installation

  1. Clone the repository: Start by cloning the project.
  2. Frontend:
    • cd news: Navigate to news directory.
    • npm install
  3. Backend:
    • cd api-news: Navigate to api-news directory.
    • npm install

How to launch

  1. Frontend:
    • cd news: Navigate to news directory.
    • ng serve: Launch frontend application on the 4200 port.
  2. Backend:
    • cd api-news: Navigate to api-news directory.
    • node index.js: Launch backend server on the 9909 port.
  3. MongoDB Connection:
    • connectionString will be provided in the secret.js file, which contents shall be privately shared via email.
    • secret.js file must be placed in the api-news directory.

If you reach this part and you've read everything, thanks for taking the time to do so.

v 1.0 - 26/10/2024