GithubHelp home page GithubHelp logo

datt30 / magic-portfolio Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 213 KB

magic-portfolio is a POC focused in explore and make a straightforward API with new flask 2.0 and consume third parties services like twitter API.

License: GNU General Public License v3.0

Python 39.56% JavaScript 0.92% HTML 3.44% Vue 56.08%

magic-portfolio's Introduction

magic-portfolio

magic-portfolio is a POC focused in explore and make a straightforward API with new flask 2.0 and consume third parties services like twitter API.

Little Demo

magic-portfolio_demo.mp4

Fron-end Layer

For create the front-end I used Vue.js and for UI component infrastructure Material Desing and another guidelines.

Back-end and Service Layer

  • Framework for API: Flask 2.0
  • Tests with unittest for python
  • ORM with SQLAlchemy

Documentation

  • You can find a postman collection and YAML in Docs folder

How to run the API

First of all we need to create a virtual environment to our flask project, go to api_magic_portfolio folder in your terminal and execute.

python3 -m venv

Note: make sure you have installed python 3.9 or above

After that we gonna need activate our new environment:

  • on windows:
.\venv\Scripts\activate
  • for linux distributions:
source venv/bin/activate

Install all dependencies with:

pip install requirements.txt

Get your API up and running with:

python runserve.py

Use the postman collection or swagger documentation to test the different available endpoints. postman_example

How to run the Vue Front-End

Go to front_magic_portfolio\magic-portfolio and download the necessary dependencies with:

npm install

Note: make sure you have installed node 11.2.0 or above

After that you just need to run the front-end application with:

npm run serve

Future improvements

  • Add central log register for tracking the errors and make troubleshooting application problems easily solved.
  • Add tokens to the API and management components.
  • Change default port, because port 5000 its not recomended for production.
  • Verify CORS politics in clients calls to the API.
  • Python script to automatically run npm run serve command to generate single page integrated with flask in a blueprint.
  • Add Atomic Design to the front-end components.

Time invested

  • 18 hours

Notes:

  • Feel in complete confidence to contribute to this project :)

magic-portfolio's People

Contributors

datt30 avatar

Watchers

 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.