Skip to content

ptouati/banner-creator

 
 

Repository files navigation

Banners

Web service for creating banners

Installing

  • Clone the project git clone http://gitlab.intern.uaprom/n.koropatnik/banner-creator.git

  • Setup requirements using your virtualenv pip install -r requirements.txt

  • Apply DB migrations python manage.py db upgrade

  • Create media/ folder in directory server/

  • Create instance/config.py in your repository root directory and populate it with configs. Example:

    SECRET_KEY = 'supersecretstring'

    SQLALCHEMY_DATABASE_URI = 'postgresql+psycopg2://user:password@host/database'

    SQLALCHEMY_TEST_DATABASE_URI = 'postgresql+psycopg2://user:password@host/test_database'`

Now try to run dev server python manage.py runserver

Database migrations

  • Use python manage.py db migrate to create a new migrations file
  • Use python manage.py db upgrade to apply changes to your database

Tests

  • Use python manage.py test to run all the tests

======

How to build front-end in repo:

  1. Open terminal: and input
npm install

this will install all used packages. 2. Then input

npm run watch

or

npm run webpack

to run webpack in auto mode

How to minimize and uglify js\css

npm run prod

Client side structure

  1. Styles sources stored in stylus file in /client/css
  2. JS sources stored in /client/js
  3. Don't forget to add new js code in separate files and require them into app.js

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 50.4%
  • Python 24.3%
  • HTML 22.5%
  • CSS 2.7%
  • Mako 0.1%