Guide on how to setup the application. This project was generated with Angular CLI version 7.3.0.
This project has following prerequisites which needs to be installed on your system in order to proceed.
- cd into the given directory
- Run command
pip install SQLAlchemy
for creating connection between SQL and Python pip install -U flask-cors
so as to enable request across Cross-Origins
- cd into the given folder in terminal
- Run
npm install
- Make sure all the required libraries and dependecies are installed.
- cd into the server folder and run
python databaseSetup.py
. This would create a Sqlite db file so as to setup the database. - Run
python data.py
. This would fetch all the data from the given CSV file and store it into the database. - Run
python application.py
to start the server. - Now cd .. to go back into the root folder and ng serve to run the Angular Application
Since, Angular App and server are running on different ports, make sure flask-cors is installed or, server would decline the request from client.
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
Run ng generate component component-name
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module
.
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory. Use the --prod
flag for a production build.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via Protractor.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.