Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ymauray/ng-cchits
AngularJS port of CCHits.net, the site where you make the charts
https://github.com/ymauray/ng-cchits
Last synced: 21 days ago
JSON representation
AngularJS port of CCHits.net, the site where you make the charts
- Host: GitHub
- URL: https://github.com/ymauray/ng-cchits
- Owner: ymauray
- Created: 2015-10-08T12:50:41.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-10-16T14:20:02.000Z (about 9 years ago)
- Last Synced: 2023-04-03T12:15:59.282Z (over 1 year ago)
- Language: CSS
- Size: 383 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
ng-cchits
=========AngularJS port of CCHits.net, the site where you make the charts.
Tools
-----You will need `bower` to manager javascript dependencies, and `composer` to manager PHP dependencies.
Database
--------There is no Flyway equivalent yet (I'll have a look at Phinx), so here's the basic schema to create.
This will create one account with a username 'admin' and password 'Ch@ngEME'```mysql
CREATE TABLE IF NOT EXISTS `users` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`username` varchar(64) CHARACTER SET latin1 NOT NULL,
`password` varchar(255) CHARACTER SET latin1 NOT NULL,
`email` varchar(128) CHARACTER SET latin1 NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `username` (`username`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
```
```mysql
INSERT INTO `users` (`id`, `username`, `password`, `email`) VALUES
(1, 'admin', '$2a$12$0f24e2b8bf113c9f6d11eunaTstXTWqI9jb3m9HZc/1J6Jc04OdbC', '[email protected]');
```Server
------Here's an Apache 2 example configuration:
```apache
Listen 9090ServerAdmin webmaster@localhost
DocumentRoot /home/yannick/dev/ng-cchits
Options +Indexes +FollowSymlinks -Multiviews
AllowOverride All
DirectoryIndex index.html
Require all granted
ErrorLog ${APACHE_LOG_DIR}/dev_error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/dev_access.log combined```
Watch it in action !
--------------------Point your browser at `http:////admin`. It should be redirected to
the login page. Login with username `admin` and password `Ch@ng3M3`, and you'll see
a very crude homepage.Point your browser to `http:////admin/#/logout` to clear the credentials.
Contribute
----------Clone this repository, then install javascript and PHP dependencies.
After that, copy `config.example.php` to `config.php` and change it according
to your environment.
```bash
$ git clone https://github.com/ymauray/ng-cchits.git
$ cd ng-cchits
$ composer update
$ bower install
$ cp config.example.php config.php
$ nano config.php
```