Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/blaise-io/angular-demo-app
https://github.com/blaise-io/angular-demo-app
Last synced: 14 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/blaise-io/angular-demo-app
- Owner: blaise-io
- Created: 2015-08-18T12:49:49.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-09-02T17:03:32.000Z (about 9 years ago)
- Last Synced: 2023-04-17T20:37:31.494Z (over 1 year ago)
- Language: JavaScript
- Size: 457 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Introduction to Angular
This is an example app that demos how to do:
- Modules and dependencies
- Dependency injection
- Routing
- Templating
- Controllers
- Providers
- Resources
- Filters
- Form validationFor a guide, visit https://docs.angularjs.org/guide.
For documentation, visit https://docs.angularjs.org.
## Running
1. Create a virtual environment with Python 2.7
2. Clone this repository in that virtual environment
3. Create a new database: `python create_db.py`. This will create a
.db file in the `databases` directory. Use this uuid in step 6.
4. Install project requirements: `pip install -r requirements.txt`
5. Start the server: `python server.py`
6. Try out the server: `http://127.0.0.1:5000/`If you want to store the databases somewhere else, set the environment
variable `ANGULAR_DEMO_DB_FILES_DIR`.## Getting a new tester up and running
1. Run `python create_db.py`
2. Send `http:///` to the tester
You can have multiple databases in one environment, so that multiple testers can
each have their own database. The names of other tester’s databases should be
considered a secret, as a tester could mess with another tester’s data.If a database needs to be reset for some reason, you can overwrite the database
with the default data from `create_db.sql` using `python create_db.py `.