https://github.com/9-volt/1day1pic
https://github.com/9-volt/1day1pic
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/9-volt/1day1pic
- Owner: 9-volt
- Created: 2014-10-05T13:37:44.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2015-12-19T13:28:17.000Z (over 10 years ago)
- Last Synced: 2024-04-15T23:49:36.242Z (over 2 years ago)
- Language: CoffeeScript
- Homepage: http://1day1pic.9vo.lt
- Size: 309 KB
- Stars: 3
- Watchers: 4
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 1day1pic
A site where each day we'll post 1 picture.
## Development
Prerequisites:
* Install [ImageMagic](http://www.imagemagick.org/).
* Install [Node.js](http://nodejs.org/).
* Install Gulp and CoffeeScript globally `npm install -g gulp coffee-script`
Start developing with a local server, automatic file builds and livereload:
* `git clone`
* `cd 1day1pic`
* `cp config.sample.json config.json`. You may edit config.json in order to adjust to your environment
* `npm install`
* `gulp`
* Open `localhost:8000` in your browser. You should see a nice 404 page
* Create a user in database. Users are located in `Users` table. You can use phpMyAdmin if you have access to it
* After you create a user - authenticate on `localhost:8000/panel`
* Create few pictures to see them on main page
In order to build the project run `gulp build`
### Database
Application requires a MySQL database. Database credentials are located in config.json file.
* Sequelize CLI: `node_modules/.bin/sequelize`
* Run migrations: `node_modules/.bin/sequelize db:migrate`
* Undo a migration: `node_modules/.bin/sequelize db:migrate:undo`
* Mock a migration: `node_modules/.bin/sequelize migration:create`
### Run
Before running in production - build sources: `gulp build`.
Run in production: `NODE_ENV=production coffee server/server.coffee`