Giter Site home page Giter Site logo

elisabethfox / hexlet-correction Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hexlet/hexlet-correction

0.0 0.0 0.0 2.4 MB

Typo Reporter

Home Page: https://hexlet-correction.herokuapp.com/

License: GNU Affero General Public License v3.0

Shell 0.47% JavaScript 3.10% Java 69.97% Makefile 0.30% HTML 26.12% Procfile 0.04%

hexlet-correction's Introduction

Hexlet Typo Reporter

A service to notify site owners of errors and typos. After integrating with the site, visitors are able to highlight an error or typo and report it to the administrator. The project works in Java.

Tasks can be discussed in the Telegram community.

Example

Go to: https://hexlet.github.io/hexlet-correction/index.html

Highlight text and press Ctrl+Enter

Development

Before you can build this project, you must install and configure the following dependencies on your machine:

  1. Java 19
  2. Docker, Docker Compose

Packaging as uber-jar

To build the final jar:

make build

Development with vagrant

Install Vagrant and VM provider (Virtualbox).

Run commands:

make vagrant-build
make vagrant-run

or just vagrant ssh, then cd /vagrant to run commands inside vm

Testing

To launch your application's tests, run:

make test

Using Docker to simplify development (optional)

For example, to start a postgresql database in a docker container, run:

make docker-infra-start

Run application with database in docker

make run-dev

Build and run application with database in docker

make run-dev-docker-db # make start

Clear config (database, app build)

make clear

Typo API calls

For creating new typo:

POST http://localhost:8080/api/workspaces/typos
Content-Type: application/json
Authorization: Basic base64(workspaceId:api-token)

{
    "pageUrl": "https://mysite.com/page/with/typo",
    "reporterName": "reporterName",
    "reporterComment": "reporterComment",
    "textBeforeTypo": "textBeforeTypo",
    "textTypo": "textTypo",
    "textAfterTypo": "textAfterTypo"
}

Hexlet Ltd. logo

This repository is created and maintained by the team and the community of Hexlet, an educational project. Read more about Hexlet.

See most active contributors on hexlet-friends.

hexlet-correction's People

Contributors

kacetal avatar samokisha avatar malikin avatar kvas1988 avatar fey avatar nikisysoev avatar anderleht avatar anasasiia avatar niyak93rus avatar alexeiak avatar mokevnin avatar 12oprs avatar malcom1986 avatar ssssank avatar nekedio avatar acidmaksim avatar germankhz avatar asb1301 avatar dzencot avatar vladimirafanasievfs avatar agsamkin avatar meco-coder avatar xushaha avatar emp7yhead avatar aslanav avatar saymon-says avatar adm1341 avatar mistercool avatar dependabot[bot] avatar sgmdlt 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.