https://github.com/vitalk/work
Build yourself, one step at a time.
https://github.com/vitalk/work
Last synced: 5 months ago
JSON representation
Build yourself, one step at a time.
- Host: GitHub
- URL: https://github.com/vitalk/work
- Owner: vitalk
- Created: 2016-03-11T14:55:12.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-06-24T18:50:07.000Z (about 9 years ago)
- Last Synced: 2025-02-26T16:49:38.874Z (over 1 year ago)
- Language: HTML
- Homepage: https://vitalk.github.io/work
- Size: 19.5 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Work
## Quickstart
1. Install application dependencies into virtual environment:
```sh
make install
```
2. Set necessary environment variables:
```sh
export SECRET_KEY='my-secret-key'
```
3. Install frontend dependencies via `npm` and `bower`:
```sh
npm install
bower install
```
4. Run local development server:
```sh
make serve
```
## Features
1. Swap between application configurations
```sh
# Set path to application config into environment variable
export APP_CONFIG='production.cfg'
# Serve application
make serve
```
2. Compress static assets
```python
# Create a bundle of assets
scripts = Bundle(
'scripts/api.js',
'scripts/main.js',
filters=('jsmin'),
output='dist/main.%(version)s.js'
)
assets.register('scripts', scripts)
```
```jinja
{% assets "scripts" %}
{% endassets %}
```