Coder Social home page Coder Social logo

trellixvulnteam / jvb_db63 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wahello/jvb

0.0 0.0 0.0 56.48 MB

License: MIT License

Shell 0.01% JavaScript 10.79% Ruby 0.01% Python 81.70% C 1.44% PHP 0.01% Tcl 3.12% Go 0.01% PowerShell 0.02% CSS 1.09% Makefile 0.01% HTML 1.50% Batchfile 0.02% Dockerfile 0.01% Procfile 0.01% SCSS 0.22% Less 0.07%

jvb_db63's Introduction

License: MIT

Django React Boilerplate

About this boilerplate

A Django 1.10 project boilerplate/template with lots of state of the art libraries and tools like:

  • React, for interactive UI development
  • django.js, for generating URLs on JS
  • Bootstrap 4, for responsive styling
  • Webpack, for bundling static assets
  • Celery, for background worker tasks
  • WhiteNoise with brotlipy, for efficient static files serving

For continuous integration, a CircleCI configuration circle.yml is included.

Also, includes a Heroku app.json and a working Django production.py settings, enabling easy deployments with 'Deploy to Heroku' button. Those Heroku plugins are included in app.json:

  • PostgreSQL, for DB
  • Redis, for Celery
  • Sendgrid, for e-mail sending
  • Papertrail, for logs and platform errors alerts (must set them manually on papertrail).
  • Opbeat, for performance monitoring

This should be enough as a starting point for any modern web project.

Project bootstrap CircleCI

  • Start your project using:
django-admin startproject theprojectname --extension py,yml,json --name Procfile,README.md --template=https://github.com/vintasoftware/django-react-boilerplate/archive/boilerplate-release.zip
  • Above: don't forget the --extension and --name params!
  • pip install -r requirements-to-freeze.txt
  • pip freeze > requirements.txt
  • npm update --save
  • Remove the ^ from "bootstrap": "^4.0.0-alpha.4" in the package.json file. While bootstrap is in alpha we have decided to lock the version to alpha4 to avoid breakage
  • Check for outdated npm dependencies with npm outdated and update them
  • Change the first line of README to the name of the project
  • Add an email address to the ADMINS settings variable
  • Change the SERVER_EMAIL to the email address used to send e-mails.

After completing ALL of the above, remove this Project bootstrap section from the project README.

How to test django-admin startproject

If you made changes to this boilerplate and want to test them, commit your changes and use git archive -o boilerplate.zip HEAD to create the template zip.

How to test Heroku deployment

Push your changes to a branch and visit https://dashboard.heroku.com/new?template=https://github.com/fill-org-or-user/fill-project-repo-name/tree/fill-branch (replace all fill).

How to add a 'Deploy to Heroku' button

Read this.

p.s. if you want to deploy in a different way please take a look the app.json file for what needs to be configured.

Developing

Quickstart

  • Create a copy of jvbhealthwellness/settings/local.py.example in jvbhealthwellness/settings/local.py
  • Create a .env file in the root of the project and add DJANGO_SETTINGS_MODULE="jvbhealthwellness.settings.local" to it
  • Create the migrations for users app: python manage.py makemigrations
  • Run the migrations: python manage.py migrate

Tools

Running the project

  • pip install -r requirements.txt
  • npm install
  • make bundle
  • python manage.py runserver

Testing

make test

Will run django tests using --keepdb and --parallel. You may pass a path to the desired test module in the make command. E.g.:

make test someapp.tests.test_views

Adding new pypi libs

Add high level dependecies to requirements-to-freeze.txt and pip freeze > requirements.txt. This is A Better Pip Workflow.

Checking lint

  • Manually with flake8 and npm run lint on project root.
  • During development with an editor compatible with flake8 and ESLint.

Pre-commit hooks

  • Run pre-commit install to enable the hook into your git repo. The hook will run automatically for each commit.
  • Run git commit -m "Your message" -n to skip the hook if you need.

Commercial Support

This project, as other Vinta open-source projects, is used in products of Vinta clients. We are always looking for exciting work, so if you need any commercial support, feel free to get in touch: [email protected]

Copyright (c) 2017 Vinta Serviços e Soluções Tecnológicas Ltda

jvb_db63's People

Contributors

akhilas7inc avatar amar97march avatar ambhore95 avatar ananyas7 avatar atuls7inc avatar bhanus7works avatar brs7inc avatar dks7inc avatar gowthams7works avatar ims7inc avatar jyothis7works avatar kkks7inc avatar kns7works avatar mgs7works avatar mlsrinivass7 avatar mnhs7inc avatar mvenkatesh5 avatar nbs7works avatar overide avatar pns7inc avatar prabhas7 avatar prasad2693 avatar ramyaketha avatar saipriya26 avatar sbs7works avatar suprajas7works avatar swapnika33 avatar trellixvulnteam avatar vikrampalnati avatar vms7works avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.