Giter VIP home page Giter VIP logo

formica's Issues

Fix Flake 8 linting

The bug that you found

Currently, All the python code fails flake 8 tests, It would be great if that could be fixed

Solution (Optional)

Run flake8 tests locally and fix the issues

Type of Issue

  • Code breaking bug
  • Documentation issue
  • Other: Fix flake8 linting

Screenshot

Include any screenshots that can assist the person reviewing the PR.

Integrate bot & backend

  • Make GET and POST requests to get the form details, questions, and responses, then send the updated responses to the backend

Add a requirements.txt for Bot

Currently, The Bot folder uses three libraries
Discord.py
Python decouple/ Python dotenv
Requests
Test out any versions of it with the bot and add it to requirements.txt

[qa] : Add Linters and Formatter

  • Need a workflow that ensures every contributor should follow the PEP-8 style guide for python code.
  • We can use flake8 for linting and Black for formatting source code.
  • Also this workflow runs on every PR which ensures the code follows PEP-8 standard or not.

Refactor Django Code

All the API views and oauth views along with some helper functions are jammed into views.py
Move the helper functions to helper.py
Feel free to refactor as much as you can

Setup guide for windows operating system

Task

Describe the step by step explanation to run the project on Windows operating system.

Solution (optional)

  • How to setup Docker(specifically for Home edition and Pro edition)
  • npm commands
  • specify API Keys if needed.

Type of Change

  • New feature
  • Feature update/enhancement
  • Documentation

Add code of conduct and contribution guidelines

Task

Hey @felixfaisal
I would like to add code of conduct and contribution guideline to the project.
Please assign it to me.
Thanks

Solution (optional)

How do you plan to accomplish this feature?

Type of Change

  • New feature
  • Feature update/enhancement
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation
  • Other: Please describe

Screenshot(s) (optional)

Include any screenshots that can assist the person in reviewing the PR

Create Docker GitHub Action for Dev Environment

Task

Create a GitHub Workflow to test the docker containers working

Solution (optional)

To start the containers in dev environment use this command - docker-compose -f docker-compose-dev.yml up
Try to have this test in matrix OS that is Linux, Mac and Windows

Type of Change

  • New feature
  • Feature update/enhancement
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation
  • Other: Please describe

Update Readme

Task

Hey @felixfaisal
I would like to add license and project admin in the readme file.

Solution (optional)

How do you plan to accomplish this feature?

Type of Change

  • New feature
  • Feature update/enhancement
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation
  • Other: Please describe

Screenshot(s) (optional)

Include any screenshots that can assist the person in reviewing the PR

Secret_key is public

Secret key is pushed to GitHub publicly

Solution

  1. Copy all the code of the settings.py to another temporary file. Remove settings.py from all the commit history, then generate a new key.

  2. Create new settings.py file, paste the code from temporary file.

  3. Create an .env file paste new generated secret key and import the key to new settings.py.

  4. Add the .env file to .gitignore, which will stop the secret_key from getting pushed.

  5. Commit the changes.

Update logo of the bot

Currently, the logo was made in a hurry
We would like to have a better logo for the repo as well for the bot's display picture
Feel free to be creative about it
It would be better to discuss the wireframes over here before we have any PRs made in regards to this

Visualize data on the frontend

Assuming the form data received on the frontend has an epoch timestamp, we could visualize the data on the frontend by displaying the number of responses received per day as a line chart or a bar chart.

New bug/issue found

The issue

Add a .env.example file for backend. I am unable to understand how to define various variables like REDIRECT_URL_DISCORD. please help me set it up.

Integrate Frontend and Backend

As of now, The API's haven't been integrated with the frontend application
API's need to be added, and responses need to be used to construct user flows

Use Docker Volumes instead of COPY

Task

Currently, the Docker Compose copies the code into the container, It might be good for production code but it's a real hassle for development.

Solution (optional)

We could either update the current docker-compose file with volumes instead of copy or create a new docker-compose file for dev environment.

Type of Change

  • New feature
  • Feature update/enhancement
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation
  • Other: Please describe

Documentation using docasaurus

Task

Create better documentation

Solution (optional)

Using Docusauras we can have better documentation that will allow contributors or developers to easily setup the system locally

Type of Change

  • New feature
  • Feature update/enhancement
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation
  • Other: Please describe

Screenshot(s) (optional)

Include any screenshots that can assist the person in reviewing the PR

Formbot: m/c questions

Implement multiple choice questions, allowing the user to respond by reacting with an emoji

Add option to select alert channel

Context:
When a user submits a form, the bot sends an alert message to a specified channel (based on the given channel id). Right now, that channel is hard coded.
Screen Shot 2021-04-12 at 1 43 56 PM

What you can do

  • On the website, in the create form section, add a drop down to allow the user to select which channel he/she wants to send these alerts to (similar to the dropdown to select a server)
  • Get the channel id and send to the backend
  • You don't need to modify anything in the bot

add some more badges

Task

add some more badges to the top of readme.md file, since the badges will be colorful and more attractive at the top of README.md file than the text the users will like it and after linking the badges it will also help them to navigate to different sections/ webpages like PRs, issues, contributors, etc.

image

Solution (optional)

I will add some badges and also will add links related to them to the top so that the README.md file will look more interactive and awesome.

Type of Change

  • New feature
  • Feature update/enhancement
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation
  • Other: Please describe

Work under/as

  • LGMSOC
  • Contributor

Setup guide for Linux based OS

Task

Describe the step by step explanation to run the project on Linux based OS

Solution (optional)

  • How to setup Docker
  • npm commands
  • specify API key if needed.

Type of Change

  • Feature update/enhancement
  • Documentation

Dockerize bot

Add a dockerfile to the bot and test it out
Add it to services in docker-compose.yml

Adding contributors sections in readme

Task

I would like to add contributors sections in readme

Type of Change

  • New feature
  • Feature update/enhancement
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation
  • Other: Please describe

Screenshot(s) (optional)

2

Create a basic form bot

Create a discord bot that:

  • Sends embedded messages
  • Responds to commands
  • Detects emoji reactions
  • Allows a user to fill in a form via DM
    • Sends 1 question at a time, waits for a response, then sends the next question

Docker containers

Create dockers container for the Frontend, Backend, Discord Bot and MySQL
Interact with each other
Create volumes for development environment

Create an Issue Template

Create an issue template for two types of issues

  • Bugs
  • Feature Request
    Feel free to be creative about it

Adding Contributors Section in readme

  • Documentation issue
    • Adding the Contributors section in the README.md to display all contributors of the project.
    • It can be next to the Project Admin section.

Do assign me under LGMSOC'21.

Create a GitHub workflow to publish images to DockerHub

Task

Create a GitHub Workflow to publish images to DockerHub

Solution (optional)

You can find resources on how to publish docker images online, For any assistance you can contact me

Type of Change

  • New feature
  • Feature update/enhancement
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation
  • Other: Please describe

Screenshot(s) (optional)

Include any screenshots that can assist the person in reviewing the PR

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.