Skip to content

guidataiku/solutions-cookiecutter-templates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Solutions Code Studio Templates

This repository contains Cookiecutter templates for building web apps with your chosen framework and Code Studio templates for quickly starting your Code Studio projects.

Please refer to the documentation for detailed instructions.

Cookiecutter Templates

Cookiecutter is a command-line utility for swiftly creating projects. This repository provides Angular and Vue.js templates packaged for smooth integration with DSS Code Studio.

Usage

Ensure you have the Cookiecutter installer in your Code Env, then execute the following command:

$ cookiecutter gh:dataiku/solutions-code-studio-templates

It will prompt you to select a template:

[1/1] Select template
  1 - Vue (./templates/vue)
  2 - Angular (./templates/angular)
  Choose from [1/2] (1):

After selection, you'll be asked to enter specific project parameters:

[1/6] Choose your (Angular / Vue) project name (Angular Project):
[2/6] Version (0.0.1):
[3/6] Choose your client server port (default 4200) (4200):
[4/6] Choose your Flask backend port (default 5000) (5000):
[5/6] DSS instance (default):
[6/6] DSS project ():

Using Your Own Cookiecutter Templates

We provide a seamless way to integrate your own Cookiecutter templates into the existing ones.

Repository Architecture

Your repository architecture must mirror that of this repository, with a main cookiecutter.json file pointing to specific templates and a templates/ directory containing all your Cookiecutter templates.

cookiecutter.json
templates/
|_ template1/
  |_ cookiecutter.json

Main Cookiecutter File

The cookiecutter.json file at the root of the repository must have a template array listing all your templates:

{
    "template": [
        "My own template (./templates/my-own-template)"
    ]
}

Environment Variables Configuration

To use your own Cookiecutter templates from a public or private GitHub repository, you need to set two environment variables:

  • PRIVATE_TEMPLATE_ACCESS set to 1 to allow access to another repository.
  • PRIVATE_TEMPLATE_REPOSITORY set with the SSH GitHub URL. For example, [email protected]:cookiecutter/cookiecutter.git.

Running

When running the following command:

$ cookiecutter gh:dataiku/solutions-code-studio-templates

It will include your private templates in the prompt:

[1/1] Select template
  1 - Vue (./templates/vue)
  2 - Angular (./templates/angular)
  3 - My own template (./templates/my-own-template)
  Choose from [1/2/3] (1):

Code Studio Templates

In the code-studio folder, we provide Code Studio Templates compatible with the latest DSS version as well as older versions.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published