Skip to content

Instantly share code, notes, and snippets.

Avatar

Michael Gonzalez genomics-geek

View GitHub Profile
@genomics-geek
genomics-geek / README.md
Last active Nov 29, 2021
Setting up a Dockerized web application with Django REST APIs, ReactJS with Redux pattern, and Webpack Hot Reloading! Mouthful.
View README.md

Guide on how to create and set up a Dockerized web app using Django REST APIs and ReactJS

Hopefully this will answer "How do I setup or start a Django project using REST Framework and ReactJS?"

This is a guide to show you step by step how this can be setup. If you just want to get started, use the cookiecuter I set up cookiecutter-django-reactjs. It basically is a fork of pydanny's cookiecutter, just added the front-end stuff :).

I created this because it was SUCH a pain in the ass setting up a project using all the latest technologies. After some research, I figured it out and have it working. The repo that implements this is located here. Feel free to use it as a boilerplate ;)

Main features:

  • Django REST APIs
@genomics-geek
genomics-geek / README.md
Last active Sep 9, 2021
Setup ReactJS, Redux, Webpack with React Hot Reloading on an existing Django Project
View README.md

Setting up ReactJS/Redux using Webpack for an existing Django project

This guide will help set up your django project to use ReactJS

1. Install Python dependencies

Add pip requirements to our django project:

  • django-webpack-loader==0.4.1 ( Connects Django project with Webpack)
@genomics-geek
genomics-geek / sge_status.md
Created Sep 5, 2019 — forked from cmaureir/sge_status.md
Sun Grid Engine SGE state letter symbol codes meanings
View sge_status.md
@genomics-geek
genomics-geek / Migrate_and_Deploy_Django_app_on_Heroku.md
Last active Jul 18, 2018
Guide on how to migrate your Django web application to be deployed on Heroku
View Migrate_and_Deploy_Django_app_on_Heroku.md
@genomics-geek
genomics-geek / setup_MacOSX_env.md
Last active Nov 20, 2017
Setting up your MacOSX machine as a dev machine
View setup_MacOSX_env.md
@genomics-geek
genomics-geek / .bash_profile
Last active Nov 8, 2017
iMac/ MacBook setup dotfiles, etc
View .bash_profile
# .bash_profile
# Load specific settings
# --------------------------------------
source $HOME/.bashrc
@genomics-geek
genomics-geek / DataTable.ts
Created Aug 18, 2017 — forked from cschmidli/DataTable.ts
Semantic UI Data Table Component
View DataTable.ts
import * as React from 'react';
import * as hash from 'object-hash';
import {
TableProps,
Table,
TableBody,
TableCell,
TableFooter,
TableHeaderCell,
@genomics-geek
genomics-geek / AvroHTTP.avdl
Created Jun 19, 2017 — forked from eggsby/AvroHTTP.avdl
Example generic spark setup that uses avro for schemas and the parquet file format for storage
View AvroHTTP.avdl
@namespace("com.example.avro.parquet.spark")
protocol HTTP {
record Header {
string name;
string value;
}
record Request {
string method;
string path;
@genomics-geek
genomics-geek / README.md
Created Apr 15, 2017 — forked from bruth/README.md
Django command that gives a set of subcommands a namespace. For example, a command named after an app can be defined with a set of subcommands, e.g. `python manage.py command subcommand`.
View README.md

Subcommander

Managment commands are assumed to be unique across all apps in a Django project. This can lead to long or obscure command names in attempt to namespace those commands.

Subcommander acts as a proxy command giving the real commands a namespace. The subcommander module can be named after the app name or some derivation. The structure looks as follows:

myapp/
    management/
        commands/