Coder Social home page Coder Social logo

israelias / cheathub Goto Github PK

View Code? Open in Web Editor NEW
28.0 1.0 9.0 203.71 MB

Web app for organizing code snippets, with Flask/Python backend, with React/Typescript frontend

Home Page: https://cheathub.vercel.app

License: MIT License

Shell 0.23% Python 25.29% HTML 0.80% TypeScript 72.82% CSS 0.85% Procfile 0.01%
flask-restful create-react-app react-typescript python reactjs react-syntax-highlighter react-router-v5 chakra-ui framer-motion typescript

cheathub's Introduction

class ReadMe:
    def __init__(self, username="israelias", year=2022):
        self.username = username
        self.year = year
        self.name = 'Joem Elias Sanez'
        self.education = {
            'programming': ['Full Stack Software Development', 'Code Institute'],
            'architecture': ['Master of Architecture', 'Columbia University'],
            'art': ['Bachelor of Fine Arts', 'Otis College of Art and Design']
        }
        self.employment = {
            'engineer': ['ResultsCX', ['Manila', 'Fort Lauderdale']],
            'architect': ['Foster + Partners', ['Singapore', 'New York']],
            'designer': ['Herzog & de Meuron', ['New York', 'Basel']],
            'all of the above': ['you', ['projects', 'anywhere']],
        }

    def doing(self, now=2023):
        today = self.year

        if now < today:
            experience = self.employment['architect']
            return """
            I was a design architect with {large_firms} in {big_cities}.
            """.format(large_firms=experience[0], big_cities=experience[1][0])

        elif now == today:
            dream = self.employment['engineer']
            return """
            I am currently in Application Development for {tech_enabled_services} in {remote_settings}.
            """.format(tech_enabled_services=dream[0], remote_settings=dream[1][0])

        elif now > today:
            goal = self.employment['all of the above']
            return """
            I am eager to collaborate with {teams} on {projects} {everywhere}.
            """.format(teams=goal[0], projects=goal[1][0], everywhere=goal[1][1])
        else:
            return """
            ### Hi there ๐Ÿ‘‹
            """
        
    def collaborate(self, role, organization, location):
        opportunity = self.employment
        opportunity[role] = [organization, location]

me = ReadMe(2022)

cheathub's People

Contributors

dependabot[bot] avatar israelias avatar

Stargazers

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

Watchers

 avatar

cheathub's Issues

Browse All Collections Feature

Currently, you can browse everyone's snippets, but you can only view your own collections of snippets. It would be fairly straightforward to inherit the same logic for an all collections search/page on the front end.

  • Add search index for collection names and owners in Collection model
  • Add like field to Collection model
  • Create endpoint with pagination
  • Develop frontend search collections page

Subdirectory Package Support

Make it easy to clone frontend without backend and vice versa.

Yarn workspaces is the obvious way to go but a package.json in a Python/Flask backend subdirectory would be relatively useless...

  • Add root package.json
  • Add backend package.json
  • Modify frontend package.json name to work with yarn workspaces from root directory
  • Add start scripts in root package.json to run development frontend, backend, and both concurrently.
  • Add scripts to backend/package.json that run the various subdirectory python commands for development and production
  • Add build scripts in root package.json to run build commands of respective subdirectories
  • Add test scripts in root package.json to run test commands of respective subdirectories

Convert Backend Script to Github Action

Current backend deployment is done manually for Heroku, and each Heroku git is removed upon each successful deployment. This should be converted to a GitHub action that runs separately from a frontend branch.

Add OpenAPI Spec

Add Swagger documentation to / endpoint of backend deployment.

  • @marshal_with resources using Flask Restful Swagger. I think it could suffice having just quickly browsed the docs
  • Point the spec to the index page of backend api

Stratify Deployment Triggers

Organize branches so deployments aren't triggered on all pushes to master.
Further stratify production and development in named branches accordingly and on Vercel dashboard.
Further stratify branches for backend updates to Heroku.

GitHub actions.

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.