Eluented / automata-take-home-test

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Take-Home test

This is my attempt at the task given within the take-home test at Automata.

API Installation

To run the Flask API, follow these steps:

  1. Navigate into the api directory from the root:
cd api
  1. Install the project dependencies using Pipenv:
pipenv install

API Usage

Running the API

To start the server, use the following command:

pipenv run dev

This will start the server on port 8080 with debug mode enabled.

Running Tests

To run the tests, use the following command:

pipenv run test

This will execute the test suite using pytest.

Test Coverage

To run the tests with coverage:

pipenv run coverage run -m pytest

To generate a coverage report, use the following command:

pipenv run coverage report

Code_RLx90tnyWw

This command will display a summary of the coverage report, showing the percentage of code covered by tests.

Frontend Installation

To run the Next.js project, follow these steps:

  1. Navigate into the client directory from the root:
cd client
  1. Install the npm packages:
npm i
  1. Run the project:
npm run dev

Technologies Used

Backend

  • Python
  • Flask
  • Pytest
  • Pipenv

Frontend

  • React
  • Next.js
  • Three.js (React Three Fiber)
  • Chakra UI
  • Tailwind.css
  • Javascript

Future Features

  • Attempt the extra credit :D
  • Making the 3D environment more dynamic and interractable
  • Adding additional form handling to prevent the user from sending invalid climate types to the API rather than wasting resources in the backend

Final Look

Interractive Home Page chrome_W7lmZZmlpC Zoom Out chrome_Id27YnzJ2e chrome_b7aqVGOam7 Click on Automata to get into the Form Page chrome_zYhbChl3At chrome_Tut7zQFWaw

About


Languages

Language:JavaScript 71.2%Language:Python 22.5%Language:CSS 6.3%