Git Product home page Git Product logo

igdaloff / tn-spa-bootstrapper Goto Github PK

View Code? Open in Web Editor NEW

This project forked from thinknimble/tn-spa-bootstrapper

0.0 0.0 0.0 1.24 MB

A Cookiecutter template for fast bootstrapping applications

Home Page: https://tn-spa-bootstrapper-staging.herokuapp.com/

Shell 8.17% JavaScript 13.43% Python 44.19% TypeScript 17.78% CSS 0.66% Makefile 0.99% HTML 5.09% Vue 8.33% Dockerfile 0.76% Procfile 0.59%

tn-spa-bootstrapper's Introduction

Thinknimble SPA Bootstrapper (Django | Vue | React)

A production-ready Django SPA app on Heroku in 20-min or less!

Example deployment (main branch)

Quick Start

First, get cookiecutter, as detailed in the official documentation.

Now run it against this repo:

cookiecutter [email protected]:thinknimble/tn-spa-bootstrapper.git

Features

See: Maintained Foundation fork

  • For Django 3.1
  • Uses Python 3.10 by default
  • Renders Django projects with 100% starting test coverage
  • Secure by default. We believe in SSL.
  • Optimized development and production settings
  • Comes with custom user model ready to go
  • Optional basic ASGI setup for Websockets
  • Optional basic Django channel setup for Websockets
  • Optional client side applications Vue or React
  • Send emails using Mailgun by default or Amazon SES if AWS is selected cloud provider.
  • Media storage using Amazon S3 or Google Cloud Storage
  • Procfile for deploying to Heroku
  • Run tests with unittest or pytest
  • Default integration with pre-commit for identifying simple issues before submission to code review
  • Integration with Rollbar for error logging

Optional Integrations

These features can be enabled after initial project setup:

  • Serve static files from Amazon S3 or Whitenoise
  • Integration with MailHog for local email testing

Usage

Let's pretend you want to create a Django project called "therock". Rather than using startproject and then editing the results to include your name, email, and various configuration issues that always get forgotten until the worst possible moment, get cookiecutter to do all the work.

Follow the Quick Start above.

You'll be prompted for some values. Provide them, then a Django project will be created for you.

Answer the prompts with your own desired options. For example:

project_name [My Project]: The Rock
author_name [ThinkNimble]: Test Author
email [[email protected]]: [email protected]
project_slug [the_rock]:
Select mail_service:
1 - Mailgun
2 - Amazon SES
3 - Custom SMTP
Choose from 1, 2, 3 [1]: 1
Select client_app:
1 - Vue3
2 - React
3 - None
Choose from 1, 2, 3 [1]: 1
Error: "my_project" directory already exists
william@Williams-MacBook-Pro thinknimble % rm -rf my_project 
william@Williams-MacBook-Pro thinknimble % cookiecutter [email protected]:thinknimble/tn-spa-cookiecutter.git --checkout cleanup
You've downloaded /Users/william/.cookiecutters/tn-spa-cookiecutter before. Is it okay to delete and re-download it? [yes]: 
project_name [My Project]: 
author_name [ThinkNimble]: 
email [[email protected]]: 
project_slug [my_project]: 
Select mail_service:
1 - Mailgun
2 - Amazon SES
3 - Custom SMTP
Choose from 1, 2, 3 [1]: 
Select client_app:
1 - Vue3
2 - None
Choose from 1, 2 [1]: 

Create a git repo and push it there::

git init
git add .
git commit -m "first awesome commit"
git remote set-url origin [email protected]:thinknimble/the-rock.git
git push -u origin main 

Now take a look at your repo. Don't forget to carefully look at the generated README. Awesome, right?

Want to Help Us Improve the Bootstrapper?

See the CONTRIBUTING file for information about reporting issues, setting up your dev environment, running tests, and making pull requests.

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.