Giter Site home page Giter Site logo

micronation's Introduction

Sup ! My name is Thomas 🍕

Sorikairo's GitHub stats

Work related

Check out my linkedin bio for detailed information

Open source

I mainly use Typescript.

Books I've read and think that every dev should have read

  • "Clean Code" and "The Clean Coder" by Robert C Martin (you know Uncle Bob)
  • "Microservice Architecture: Aligning Principles, Practices and Culture" by Mike Amundsen, Matt McLarty, Ronnie Mitra, and Irakli.
  • "TDD by example" by Kent Beck
  • "Apprenticeship Patterns: Guidance for the Aspiring Software Craftsman" by Adewale Oshineye, Dave Hoover

Book I'm reading :

  • "The Pragmatic Programmer" by Dave Thomas

Book I'll read right after :

  • "Design Patterns" by the GOF

micronation's People

Contributors

ashpieboop avatar at-lorlando avatar sorikairox avatar spicytelescope avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

micronation's Issues

Color picker fails to display loaded color, defaults to #FF0000

I suspect that this is happening when it receives an hex color code without the alpha channel.

This happens:

  • When submitting a pixel color change request (resets to red, even though the correct color is sent in the request payload)
  • When loading the page (the color picker shows red instead of the actual pixel color, and if you don't modify it as in not touching the color picker, then clicking on the "Valider" button sends the actual current pixel color, not the one displayed by the color picker)

Error after launching the container on the back side

When I launch the containers with Docker:

  1. sudo docker build -t exp-flag-back .
  2. sudo docker-compose up
version: '3.7'

services:
  mongo:
    image: mongo

  dirtybiology-back:
    image: exp-flag-back
    ports:
      - 3000:3000
    environment:
        DATABASE_URI: "mongodb://mongo:27017/test"
        DIRECTUS_URL: https://dev.fouloscopie.com
        PORT: 3000

Error:

dirtybiology-back_1  | Error: Cannot find module 'library/database/repository/DatabaseRepository'
dirtybiology-back_1  | Require stack:
dirtybiology-back_1  | - /usr/src/app/flag-service/dist/flag/pixel/PixelRepository.js
dirtybiology-back_1  | - /usr/src/app/flag-service/dist/flag/FlagService.js
dirtybiology-back_1  | - /usr/src/app/flag-service/dist/flag/FlagController.js
dirtybiology-back_1  | - /usr/src/app/flag-service/dist/flag/FlagModule.js
dirtybiology-back_1  | - /usr/src/app/flag-service/dist/bootstrap.js
dirtybiology-back_1  | - /usr/src/app/flag-service/dist/main.js
dirtybiology-back_1  |     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15)
dirtybiology-back_1  |     at Function.Module._load (internal/modules/cjs/loader.js:746:27)
dirtybiology-back_1  |     at Module.require (internal/modules/cjs/loader.js:974:19)
dirtybiology-back_1  |     at require (internal/modules/cjs/helpers.js:93:18)
dirtybiology-back_1  |     at Object.<anonymous> (/usr/src/app/flag-service/dist/flag/pixel/PixelRepository.js:16:30)
dirtybiology-back_1  |     at Module._compile (internal/modules/cjs/loader.js:1085:14)
dirtybiology-back_1  |     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
dirtybiology-back_1  |     at Module.load (internal/modules/cjs/loader.js:950:32)
dirtybiology-back_1  |     at Function.Module._load (internal/modules/cjs/loader.js:790:12)
dirtybiology-back_1  |     at Module.require (internal/modules/cjs/loader.js:974:19) {
dirtybiology-back_1  |   code: 'MODULE_NOT_FOUND',
dirtybiology-back_1  |   requireStack: [
dirtybiology-back_1  |     '/usr/src/app/flag-service/dist/flag/pixel/PixelRepository.js',
dirtybiology-back_1  |     '/usr/src/app/flag-service/dist/flag/FlagService.js',
dirtybiology-back_1  |     '/usr/src/app/flag-service/dist/flag/FlagController.js',
dirtybiology-back_1  |     '/usr/src/app/flag-service/dist/flag/FlagModule.js',
dirtybiology-back_1  |     '/usr/src/app/flag-service/dist/bootstrap.js',
dirtybiology-back_1  |     '/usr/src/app/flag-service/dist/main.js'
dirtybiology-back_1  |   ]
dirtybiology-back_1  | }

Problem with an error message

The message :
"La date de dernière modification de ta zone est trop récente, merci de patienter !"

must be :
"La date de ta dernière modification d'un pixel est trop récente, merci de patienter !"

Performance issue when computing flag

When the number of creation event is around 100k, the flag computation start to get a little slow (around 2.6s) and it won't get better the more event we have.

How to fix this :

  • create a "snapshot collection" to store computed flag every X events or X time
  • before computing events for a flag, get the lastest snapshot and compute event created AFTER the snapshot
  • merge snapshot and computed event

Anti Bot, pleaaaase :'(

Quelqu'un à réussi à créer un bot qui est en train de péter tout ce que les gens tentent de créer.
Ca na plus rien de marrant... 😢
Il faut mettre en place un système pour empêcher les systèmes automatiques de remplir le drapeau plus rapidement que tout le monde.

UX proposition: the header bar should not use buttons for links

The nav menu item "Éditer le drapeau" should be a regular link, not a button.

Making links look like buttons creates confusion as it makes the concepts of "action" and "navigation" overlap.
That is, when clicking a link, I expect to go to another page. When clicking on a button, I expect to do something that will change the state of the application (sending a form, logging out, refreshing data...).

An alternative way to distinguish menu items would be to add prefix icons.

Show neighbours nickname

Using directus sdk as explained by Samuel, we can get users nickname by id.

We should display your direct neighbours nickname on the edit page so you try to communicate with them through discord in order to design something nice!

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.