Giter Site home page Giter Site logo

juansehevia / image-annotation-react Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 106 KB

Personal toy annotation tool, used to learn React and Frontend-Backend basic architectures.

Dockerfile 2.02% Python 33.87% JavaScript 38.58% CSS 18.07% SCSS 7.46%
ai computer-vision full-stack

image-annotation-react's Introduction

Project Structure

This repository contains the code for my Image Annotation application, which is divided into two main directories: backend and frontend.

The main goal of this exercise was to learn React and have a basic SPA that allows users to upload images and annotate them with bounding boxes. The backend is built with Flask and the frontend with Next.js.

Backend

The backend directory contains the code for the backend of our application. It is built with Flask and follows a typical Flask project structure.

Directory Structure

  • app.py: This is the main entry point of our Flask application. It creates the Flask app and sets up the routes.
  • models/: This directory contains the SQLAlchemy models for our application. Each file corresponds to a table in the database.
  • routes/: This directory contains the route definitions for our application. Each file corresponds to a different part of the API.

Frontend

The frontend directory contains the code for the frontend of our application. It is built with Next.js and Redux, and follows a typical Next.js project structure.

Directory Structure

src/: This directory contains the main source code for the frontend application.

  • actions/: This directory contains Redux actions for managing state related to images and annotations.

  • components/: This directory contains React components used in the application. Each file corresponds to a different component.

  • reducers/: This directory contains Redux reducers for managing state related to images and annotations.

  • pages/: This directory contains the main pages of the application. Each file corresponds to a different route in the application.

  • styles/: This directory contains CSS modules for styling the application.

  • store.js: This file sets up the Redux store for state management.

How it Works

The frontend application is built with Next.js, a React-based framework for building web applications. It uses Redux for state management.

The application's main entry point is _app.js, which wraps the application with the Redux provider.

The pages directory contains the main pages of the application. The index.js file corresponds to the home page, which displays an image and a control panel for managing annotations.

The src directory contains the main source code for the application. The actions directory contains Redux actions for managing state related to images and annotations. The reducers directory contains Redux reducers for managing this state.

The components directory contains React components used in the application. The ImageComponent component displays an image and handles click events for adding annotations. The ControlPanel component provides buttons for managing annotations.

The styles directory contains CSS modules for styling the application. Each file corresponds to a different component or page.

To start the development server, run one of the following commands:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Then, open http://localhost:3000 with your browser to see the result. The page auto-updates as you edit the file.

image-annotation-react's People

Contributors

juansehevia avatar

Watchers

Kostas Georgiou avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.