Source code.

Inside the source
code.

How do you access the code?

  1. Codebots write to your repo.

    A codebot writes source code to your git repository, like any member of your team.

    Codebots build screen
  2. Update your app on Codebots.

    Any update to your diagrams on the Codebots platform will be written into the dedicated branch in your repository, so you can continue to maintain your project alongside what our bots write.

    Screenshot of codebot activity in git repo
  3. Set up your GitLab repo.

    You own your source code, so our Codebots can push to your private GitLab repository. We use your SSSH key so we support a variety of git providers including GitLab, GitHub and Bitbucket.

    GitLab, GitHub, and Bitbucket logos
  4. Or we host it for you.

    Codebots can host a free private GitLab repository for your code.

    Choose to host own or use our git repo
  5. Run your app.

    You can then take the code and run your application on your choice of server or environment.

    Codebots target application

What can you expect when you clone your code?

checkbox

Git repository

checkbox

File/data structure

checkbox

API endpoints

checkbox

Developer notes

checkbox

Project config files

Everything is setup for you.

Inbuilt security.

Bot-written code takes into consideration the top 10 vulnerabilities for open web applications, in accordance with OWASP standards, to keep your app as secure as possible.

/**
* Return the number of records available in the database.
*
* @return the number of records available in the database.
*/
@PreAuthorize("hasPermission('TankEntity', 'read')")
@Transactional(readOnly = true)
public long count() {
// % protected region % [Add any additional logic for count before the main body here] off begin
// % protected region % [Add any additional logic for count before the main body here] end

long count = repository.count();

// % protected region % [Add any additional logic for count before returning the count here] off begin
// % protected region % [Add any additional logic for count before returning the count here] end
return count;
}

How Codebots secures your apps.

Secure your apps.

Industry accessibility standard.

Front-end elements in the bot-written code follow industry standards and best practices for HTML accessibility, and the default colour schemes also adhere to AA accessibility standards.

AAA AAA
// Calculate the luminance for a color.

@function luminance($color) {
\t$red: nth($linear-channel-values, red($color) + 1);
\t$green: nth($linear-channel-values, green($color) + 1);
\t$blue: nth($linear-channel-values, blue($color) + 1);

@return .2126 * $red + .7152 * $green + .0722 * $blue;
}
// Calculate the contrast ratio between two colors.
// See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
@function contrast($back, $front) {
$backLum: luminance($back) + .05;
$foreLum: luminance($front) + .05;
@return max($backLum, $foreLum) / min($backLum, $foreLum);
}

// Determine whether to use dark or light text on top of given color.
// Returns black for dark text and white for light text.
@function get-contrasting-text-color($color) {
$lightContrast: contrast($color, $white);
$darkContrast: contrast($color, $black);

@if ($lightContrast > $darkContrast) {
@return $white;
}
@else {
@return $black;
}
}

Developer APIs

Codebots apps come with two APIs; REST API and GraphQL. Both provide basic CRUD integration to fetch and mutate data for all business objects or other entities within the application. The REST API was created to meet the OpenAPI/Swagger specification with complete and interactive documentation available.

Protected regions

The source code is designed to be developer-readable. It can be customised and continually iterated with the use of Protected Region code snippets.

        
        
        
        

Here's an example to try out, type anything then rebuild!

Click to rebuild

Documentation & developer notes.

Your code includes full support documentation and developer notes.

Codebots also provides a large variety of documentation ranging from reference documents and videos, through to learning guides, and courses for the platform itself.

Head to the Knowledge Base to check out some of these docs.