Skip to content

jonthdiaz/fastSwaps

Repository files navigation

Full Stack JS - Code Challenge - Solution

This project contains a Full Stack JavaScript application that consumes data from an external API and presents it in an organized manner on the frontend. The API and the frontend are containerized using Docker and can be run together using Docker Compose.

Prerequisites

Make sure you have the following installed on your system:

Getting Started

  1. Clone this repository to your local machine:
git clone <repository_url>
cd <repository_name>
  1. Build the Docker images:
docker-compose build
  1. Run the application using Docker Compose:
docker-compose up

This will start both the API server and the frontend client.

API

Endpoint

The API serves data at the following endpoint:

GET http://localhost:3000/files/data

API Key

The API requires an API Key to access the external API. The API Key is "Bearer aSuperSecretKey".

API Documentation

For detailed API documentation, refer to the Swagger UI provided by the external API: API Externo - Swagger

Optional Endpoints

Frontend

Access

Access the frontend client at: http://localhost:3000

Layout

The frontend client displays the data obtained from the API in an organized layout.

Optional Features

  • Redux is used for state management in the frontend.
  • Jest is used for unit testing the API.
  • Filtering by "fileName" is implemented using the optional API endpoint and query parameter.

Notes

  • The API runs on Node.js 14, and the frontend client runs on Node.js 16.
  • The API and frontend do not depend on globally installed libraries or OS-specific configurations.
  • The API is written in JavaScript (ES6+), and no transpilers like Babel or TypeScript are used.
  • The frontend is written using React, React Bootstrap, and functional programming with Hook Effects.
  • Docker is used for containerizing the application, making it easy to deploy and run in different environments.

License

This project is licensed under the MIT License.

About

Istanbul hackathon

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published