Giter VIP home page Giter VIP logo

basicproject's Introduction

basicproject

This is a Django/React starter project with lots of batteries included. I created it to get started on new projects more quickly and stay up-to-date on the tools I like to use. I'm hoping you'll get something out of it too.

Getting Started

macOS

  1. Install the following:

    • Command Line Tools package - xcode-select --install
    • Vagrant
    • VirtualBox
    • Homebrew
    • Ansible - brew install ansible
    • Node.js - brew install node@14
  2. To start the backend and watch for code changes, run the following in a terminal window:

    git clone https://github.com/johnthedebs/basicproject.git
    cd basicproject
    # OR
    django-admin startproject <project_name> --template https://github.com/johnthedebs/basicproject/archive/main.zip
    cd <project_name>
    
    vagrant up
    vagrant ssh
    runserver
    
  3. To build the frontend and watch for code changes, run the following in a second terminal window:

    npm install
    npm start
    
  4. Visit localhost:8080 in a browser

Testing

Cypress tests with npm run test or npm run test-headless.

https://docs.cypress.io/guides/getting-started/writing-your-first-test.html#Write-your-first-test

New Deploy Checklist

  • Set SECRET_KEY in settings.py
  • Rename ops/host_vars/basicproject
    • Set hostname, user, ansile_ssh_host, and ansible_ssh_user
    • Change ops/production to reflect host_vars file name
  • Set hostname, site_name, site_path in group_vars
  • npm install in ops/lets directory
  • Fill out ops/lets/config/example-settings.js and rename to settings.js
  • In conf/production.py
    • Set ALLOWED_HOSTS, ADMINS, SENTRY_DSN
  • Set SENTRY_DSN in conf/webpack.config.js
  • https://docs.djangoproject.com/en/3.1/howto/deployment/checklist/

basicproject's People

Contributors

johnthedebs avatar vinnymac avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.