Giter VIP home page Giter VIP logo

scratchy's People

Contributors

benvii avatar dependabot[bot] avatar draeggon avatar landernerpi avatar mpsb avatar ritorizo avatar viandoxdev avatar yannis-mlgrn avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

scratchy's Issues

[front] Afficher la liste des messages d'une room

connaissant l'id d'une room, afficher la liste des messages.

Exemple d'utilisation du composant :

<messages v-bind:messages="messages"></messages>

<script>

//...
data: {
    messages: [
       {content: "Bonjour tata", author: "toto",  timestamp: 1618585021 },
        {content: "Salut toto", author: "tata",  timestamp: 1618585121 },
    ]
};
//...

</script>

Better read me

Make a better read me with some syntax

README.md :

  • Explain the stack (back + front), add link to other readme in the project

server/README.md :

  • Add docker-compose cmd : Done here : 7cc6366
  • Move API documentation in doc folder

front/README.md :

  • Add README file
  • Add python server cmd

[front] Create room-list component

Usage :

<room-list v-bind:rooms="rooms" v-on:room-selected="displayRoom($event)"></room-list>

<script>

//...
rooms = [
   {
      "_id": {
            "$oid": "6071ac5176e5bd456a859d9d"
      },
      "description": "ma description",
      "title": "Room 1",
      "user": []
   },
   {
      "_id": {
            "$oid": "6071ac5176e5bd456a859d9d"
      },
      "description": "ma description",
      "title": "Room 2",
      "user": []
   }
]
//...

</script>

Event - Room Selected

$event is the selected room object

[Doc] add insomnia export files

use insomnia export files with yalm format

  • make insomnia file with all request and environment variables

  • export this file in yaml format

  • add commentary to make a better documentation

[Front] refractor text_editor

text editor should be renamed into message_editor (both the file and the code), the input should be changed to a styled textarea (to support multiline messages) and the css should be moved to a message_editor.css fil (in front/css). The final HTML should include links to both front/css/global.css and front/css/message_editor.css

  • rename text_editor in message_editor
  • change input to textarea (in template) as well as change css acordingly
  • move css in files (part of the style is already in global.css)

[front] Login screen / choose your pseudo

Use case :

As a end user I need to choose my pseudo to use the app.
As a end user I would like to automatically create an account if the pseudo doesn't exists.
As a end user I would like to use the same account each time I use the app with the same pseudo.

We need a VueJS component that invites the user to type it's pseudo before using the app it should emit an event when the user wants to validate it's pseudo.

Interface qui affiche les détail d'une room

Interface qui affiche les détail d'une room.

En tant qu'utilisateur de scratchy, je suis pouvoir voir sur la page d'accueil les détail d'une room donnée c'est à dire : son nom, son ID, sa description et la liste des ID des utilisateurs présent dedans.

[front] Composant message-editor

<message-editor v-on:send-message="api.sendMessage(roomId, $event)"></message-editor>

Events

send-message

La valeur de l'event c'est le contenu du message.

[back] Retreive user with it's pseudo

Front guys need a way to retreive a user using it's pseudo, will be used in the first version login (a bit like IRC).

We need a get endpoint : /api/user/?pseudo=totoPseudo that will return the corresponding profile of 404 if nothing is found.

[Doc] Class UML diagram of the front App

Front App needs more structuration and macro visualisation, we need a first draft of the VueJS components organisation, Api related services and the model.

Model will be the same as the API and serveur site model.

This diagram should help developers understand what are the props/data/methods of the components.

[front] Create user-list

Usage :

<user-list v-bind:users="users"></user-list>

<script>
//..
users = {
   {
     "_id": {
       "$oid": "607ae876f59d21d5a50ac3c9"
     },
     "pseudo": "mon pseudo",
     "user": "default",
     "roomsId": []
  },
  {
     "_id": {
       "$oid": "607ae876f59d21d5a50ac3c9"
     },
     "pseudo": "mon pseudo",
     "user": "default",
     "roomsId": []
  }
}
//..
</script>

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.