https://github.com/d0nutptr/angular2-and-flask-routing-example
https://github.com/d0nutptr/angular2-and-flask-routing-example
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/d0nutptr/angular2-and-flask-routing-example
- Owner: d0nutptr
- Created: 2017-06-02T02:01:49.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-06T23:51:45.000Z (about 9 years ago)
- Last Synced: 2025-03-20T12:51:02.399Z (over 1 year ago)
- Language: TypeScript
- Size: 16.6 KB
- Stars: 3
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Installation Instructions
## Getting Python
1) Get the latest python 3 version
* https://www.python.org/downloads/
2) After installing everything, open a command line.
3) Type `pip install flask` and let it install
You should now have Python 3 and Flask installed.
## _(Optional)_ Installing Angular 2
1) Install NodeJS from here:
* https://nodejs.org/en/download/
* Made sure to get `npm` when installing. It should be checked by default.
2) After installing, open a command line
3) Type `npm install -g @angular/cli`
You should now have Angular 2 installed.
# Starting the application
To start the full application, do the following:
1) Open a command line
2) navigate to the `Backend` folder
3) Type `python server.py`
This should start the server at `localhost:5000`
----
If you want to make changes to the Angular 2 code, you can navigate the command line to the `Frontend` folder and execute `ng build`. After executing that, go back to the `Backend` folder and restart the server with `python server.py`.
If there are any issue where `ng build` did not automatically install the node modules, you can execute `npm install` in the `Frontend` folder and it should automatically install them for you.