Coder Social home page Coder Social logo

codesnippets's Introduction

CS50x Final Project: CodeSnippets

Introduction:

CodeSnippets is a SNS like code snippets database implemented using Flask, sqlalchemy, postgresSQL and codemirror as a code writing front-end api.

Front-end:

Code is writing using the code mirror api, tagsinput and typeahead are used for inserting and editing code snippets tags.
codemirror: CodeMirror is a versatile text editor implemented in JavaScript for the browser. It is specialized for editing code, and comes with a number of language modes and addons that implement more advanced editing functionality. (codemirror.net)
tagsinput: Bootstrap Tags Input is a jQuery plugin providing a Twitter Bootstrap user interface for managing tags.(https://bootstrap-tagsinput.github.io/bootstrap-tagsinput/examples/)
typeahead: a flexible JavaScript library that provides a strong foundation for building robust typeaheads. (https://twitter.github.io/typeahead.js/)
Code snippets are ordered by the number of tags when searching.

Back-end:

Database was implemented in postgresSQL using plain sqlalchemy, many to many relationship were implemented using sqlalchemy secondary relationship (for bookmarks and tags).
postgresSQL: PostgreSQL is a powerful, open source object-relational database system with over 30 years of active development that has earned it a strong reputation for reliability, feature robustness, and performance.(https://www.postgresql.org/)
sqlalchemy: SQLAlchemy is the Python SQL toolkit and Object Relational Mapper that gives application developers the full power and flexibility of SQL. It provides a full suite of well known enterprise-level persistence patterns, designed for efficient and high-performing database access, adapted into a simple and Pythonic domain language. (https://www.sqlalchemy.org/)

And that is pretty much it. Database models are implemented in database.py, config.py sets the aplication configurations and app.py implements the routes and database interactions.

codesnippets's People

Contributors

lucasdornelles avatar

Watchers

James Cloos avatar

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.