Giter Site home page Giter Site logo

maayanlab / server-templates Goto Github PK

View Code? Open in Web Editor NEW
3.0 16.0 3.0 3.67 MB

Docker containers of preconfigured servers and web application stacks.

Python 17.88% Shell 0.41% CSS 0.46% HTML 15.97% Dockerfile 6.28% JavaScript 8.89% Jinja 9.83% Jupyter Notebook 6.26% TypeScript 21.75% Makefile 12.27%

server-templates's Introduction

server-templates

These server templates are here to get you started fast with some best-practices baked in.

Quick Start

Install Python

Mac

Install homebrew for easily installing lots of things. Then:

brew install python

Windows

Install scoop for easily installing lots of things. Then:

scoop install python

Linux

Install python from your distribution's package manager.

Install Cookiecutter

# install cookiecutter (if not already present)
pip install cookiecutter

# confirm cookiecutter is available
cookiecutter

Installing a template from the library

cookiecutter gh:maayanlab/server-templates --directory [some-template-directory-name]

Answer all the prompts and a directory with your application ready to go will be generated. Open the generated folder and read the README.md for more information on moving forward with the template.

Selecting a Template

Each template is labeled by the technologies it uses. More information can be found by clicking the template directory and reviewing the README, and additional information will be in the README you get once your project is created. Some of the technologies used are described briefly below:

  • flask: A light-weight, web application framework for tiny python-driven applications
  • javascript: Javascript server (nodejs) / client (browser)
  • nginx: A high-performance yet light-weight web server and load balancer
  • python: The python 3 programming language; version 2 is deprecated
  • react: A javascript frontend framework for HTML in Javascript
  • typescript: A type-safe variant of javascript with improved developer experience
  • nextjs: A full-stack javascript framework for joint frontend-backend development using react

Developing a cookiecutter (from cookiecutter docs)

This is general how-it's-made information. You don't need to follow any of these steps to develop a project.

Input

This is the directory structure for a simple cookiecutter::

cookiecutter-something/
├── {{ cookiecutter.project_name }}/  <--------- Project template
│   └── ...
├── README.md                     <--------- A helpful README
│
│
└── cookiecutter.json             <--------- Prompts & default values

You must have:

  • A cookiecutter.json file.
  • A {{ cookiecutter.project_name }}/ directory, where project_name is defined in your cookiecutter.json.

Beyond that, you can have whatever files/directories you want.

Output

This is what will be generated locally, in your current directory:

mysomething/  <---------- Value corresponding to what you enter at the
│                         project_name prompt
│
└── ...       <-------- Files corresponding to those in your
                        cookiecutter's `{{ cookiecutter.project_name }}/` dir

server-templates's People

Contributors

u8sand avatar gwgundersen avatar maxim-k avatar jeevangelista avatar

Stargazers

 avatar Emir Turkes avatar  avatar

Watchers

James Cloos avatar  avatar  avatar Alexandra Keenan avatar Katie Lin avatar  avatar  avatar  avatar  avatar Sherry Jenkins avatar Avi Ma'ayan avatar Zachary Flamholz avatar Axel Feldmann avatar Yosef Roth avatar Allison Bailey avatar  avatar

server-templates's Issues

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.