https://github.com/hiroakis/host-management-app
This project is created for my angular.js study :)
https://github.com/hiroakis/host-management-app
Last synced: 7 days ago
JSON representation
This project is created for my angular.js study :)
- Host: GitHub
- URL: https://github.com/hiroakis/host-management-app
- Owner: hiroakis
- Created: 2014-06-23T07:59:03.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-08-01T07:54:31.000Z (almost 12 years ago)
- Last Synced: 2025-04-08T20:48:46.935Z (about 1 year ago)
- Language: Python
- Size: 397 KB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# host-management-app
This is a IP address and host administration tool using flask and angular.js.
This project is created for my angular.js study :)
* Python 3.3
* Flask
* SQLAlchemy
* MySQL
* Angular.js
## Installation
### This application
```
git clone https://github.com/hiroakis/host-management-app.git
cd host-management-app
pip install -r requirements.txt
cd view
bower install
```
### httpd
Move view directory to document root on your httpd and edit view/static/js/app.js following line.
```
var api = 'http://localhost:8080';
```
* nginx.conf
view/nginx.conf.example
### MySQL
Install MySQL and edit srvadm/config.py
```
SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://srv:srv@localhost/srv?charset=utf8'
```
Create database schema and user to connect.
```
/etc/init.d/mysql start
mysql -uroot -e "create database srv"
mysql -uroot -e "grant all privileges on srv.* to 'srv'@'localhost' identified by 'srv';
```
### start application
```
python manage.py run
```
### insert sample data
```
sh init.sh
```
## screen shot

## License
MIT.