Giter Site home page Giter Site logo

arep-seminario's Introduction

Backend AREP

Check the Front-end implementation.

What is this?

This is a repository for all the files used to create a backend with flask in order to connect our functions with a simple JavaScript web application

Getting Started

For implementing this library you will need to have Python installed in your computer.

Prerequisites

To use this library you will need to have Python installed in your computer, at least the version 3.7.
You can check your Python version typing on cmd:

python --version

Installing

  • Clone this git repository into your computer.
  • Start coding!
# In your root folder:

https://github.com/Rincon10/AREP-Seminario.git

upgrade pip

python -m pip install --upgrade pip

install virtualenv

pip install virtualenv

Execute virtualenv

virtualenv .

Using the Virtual Environment

Activate:

cd venv/Scripts
activate

Deactivate:

cd venv/Scripts
deactivate

Install requirements:

  • With the venv activated:
pip install -r requirements.txt

API

PUT REQUESTS

  • [/api/v1/file]: Here you will find the functionallity based on the FileAnalyzer algorythm. The JSON structure of a PUT request to this endpoint should look like this:
{
	"nameProject": {
		"title": "Nombre del proyecto",
		"value": "SAOKO-back"
	},
	"authors": {
		"title": "Autores",
		"value": ""
	},
	"totalLines": {
		"title": "Total de líneas de codigo",
		"value": 1034
	},
	"totalClasses": {
		"title": "Total de clases",
		"value": 28
	},
	"controllers": {
		"title": "Total de controladores",
		"value": "ChatAPIController.java, RoomAPIController.java, TaskAPIController.java, UserAPIController.java"
	},
	"services": {
		"title": "Total de servicios",
		"value": "ChatService.java, RoomService.java, TaskService.java, UserService.java"
	},
	"microServicesSuggested": {
		"title": "Número de los microservicios sugeridos",
		"value": "chat, room, task, user"
	}
}

Testing the enpoint

  1. Using
{
    "url":"https://github.com/juancho20sp/SAOKO-back.git"
}

Request

Back-end Response

Front-end Response



  1. Using the repository
{
    "url":"https://github.com/Rincon10/U-Cord.git"
}

Request

Back-end Response

Front-end Response



Built With

  • Python 3.8 - As the main programming language and Flask as microframework.

Author

License

This is an open source project.

Thanks for checking out!

arep-seminario's People

Contributors

juancho20sp avatar rincon10 avatar

Stargazers

 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.