Giter Site home page Giter Site logo

kyberorg / axe Goto Github PK

View Code? Open in Web Editor NEW
6.0 6.0 1.0 12.63 MB

Axe - Short Links

Home Page: https://axe.pm

License: The Unlicense

Java 96.63% CSS 0.77% Dockerfile 0.10% Shell 0.01% HTML 1.02% JavaScript 0.29% Go 0.59% TypeScript 0.03% FreeMarker 0.57%
axe java link-shortener open-source short-url spring-boot trunk-branch url-shortener url-shortener-microservice vaadin

axe's People

Contributors

dependabot[bot] avatar kyberorg avatar snyk-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

codacy-badger

axe's Issues

Change docker tag

Instead of latest-dockerize, should be dockerize-latest as more intuitive.

Vaadin UI

Is it reasonable to use Vaadin and use Java for GUI as well ?

  • Integrate Vaadin to Yals
  • Rewrite login page

jQuery and JS should go away, but Twitter BS should stay.

Login API

Should access user/password and give back token

Normalize GUI

  • Front page (first row)
  • Auth selector page
  • Login page
  • Front page (auth part)

Mattermost Endpoint

Nice to have endpoint for Mattermost Chat

POST /api/mm -> /api/store and provide back JSON with short link

DB (Models) preparation to users

  • Design users table
  • Create manually "demo" user
  • Create manually "anon" user with name void
  • Write rollback SQL
  • Create models and repos for new tables
  • Create tests for create new objects of new models (User, Token)...
  • Update links table, model and test with owner. DB Changeset 4 (Rollback: ALTER TABLE and remove owner, delete FK).
  • Update links table, model and test with owner. Model update
  • Update links table, model and test with owner. Test update
  • Chown all current links to "yalsGod" user. DB Changeset 5 (Rollback: no rollback, as deleting 'owner' col completely)
  • Resolve remained TODO items

Login page: JS part. Draft

  • Tests: Incorrect input
  • JS: Button click handle: validate

  • Tests: Correct input: redirect to main
  • JS: Button click handle: send to API

  • JS: Success handle: console OK
  • JS: Error handle: depends on status. Console error: message.

Predictable docker tags

Current logic is:

  1. Use TAG
  2. If no TAG and Branch == trunk, use label "latest"
  3. If Branch != trunk, use Commit

Commit isn't predictable item.

New logic should produce more predictable docker tags.

Proposed:

raw tag: travis-${TRAVIS_BUILD} ex: travis-24.1
+
docker tag aka D_TAG. Where D_TAG is:

  1. Git tag (when release)
    or
  2. latest-${GIT_BRANCH_NAME}, ex: latest-dockerize

Mattermost: multiparam support

Example usage:

/yals https://my.link SuperInformative description should lead to SuperInformative description https://yals.ee/sjFds

Docker-ready API calls

It seems like current version of app isn't docker-ready.

I excepts to run on same port inside and outside.

com.mashape.unirest.http.exceptions.UnirestException: org.apache.http.conn.HttpHostConnectException: Connect to localhost:1234 [localhost/127.0.0.1] failed: Connection refused (Connection refused)

His error happens because app running inside container at port 8080, but accessible from outside at port 1234 and request does only inside of container

Selenide update crashes build

Update to Selenide 4.9.1 and 4.8 crashes build, update to 4.7 and 4.6 errors build.

See branch for more info: 49-selenide-trouble

Too many ENV params in yals container

Now we have:

 - DOCKER_INTERNAL_PORT=8080
           - DB_TYPE=__YALS_DB_TYPE__
           - DB_DRIVER=__YALS_DB_DRIVER__
           - DB_URL=__YALS_DB_URL__
           - DB_USER=__YALS_DB_USER__
           - DB_PASS=__YALS_DB_PASS__
           - JAVA_OPTS="$JAVA_OPTS __YALS_JAVA_DEBUG__"

Should be removed:

  • DB_DRIVER=YALS_DB_DRIVER as depends on DB_TYPE

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.