https://github.com/vermicida/flask-ng4-example
Ejemplo de backend Flask consumido desde frontend Angular.
https://github.com/vermicida/flask-ng4-example
Last synced: 4 days ago
JSON representation
Ejemplo de backend Flask consumido desde frontend Angular.
- Host: GitHub
- URL: https://github.com/vermicida/flask-ng4-example
- Owner: vermicida
- Created: 2017-10-03T08:43:14.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-10-03T08:45:15.000Z (over 7 years ago)
- Last Synced: 2025-02-17T14:49:07.622Z (3 months ago)
- Language: TypeScript
- Size: 69.3 KB
- Stars: 0
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# flask-ng4-example
## Backend
Es necesario tener instalado:
- [Python 2 / 3](https://www.python.org/)
- [pip](https://pip.pypa.io/en/stable/)
- [virtualenv](https://virtualenv.pypa.io/en/stable/)Nos posicionamos en el directorio correspondiente:
```bash
$ cd backend
```Creamos e iniciamos un **virtualenv**; en caso de querer usar uno que ya tengamos disponible, nos saltamos el primer paso:
```bash
$ virtualenv mi-venv
$ source mi-venv/bin/activate
```Instalamos dependencias:
```bash
$ pip install -r requirements.txt
```Iniciamos el servidor Flask:
```bash
$ python main.py
```## Frontend
Es necesario tener instalado:
- [Node.js](https://nodejs.org/)
- [Angular CLI](https://cli.angular.io/)Nos posicionamos en el directorio correspondiente:
```bash
$ cd frontend
```Instalamos dependencias:
```bash
$ npm install
```Iniciamos el servidor web:
```bash
$ ng serve
```