Setting Up The Project for Development

Cloudvanti is a platform that facilitates an environment to customize development code changes. Not only that but also Cloudvanti give customers gain full access to their source code project, deployment, backup, rollback, and restore, as well as CI/CD integrated setup with Repository to enable it to be deployed with custom codes.

https://media.nimvio.com/Project_7b52b729-4b2f-4836-83ff-80c738b6f0a9/Media/assets_doc_sitefinity/site-setting_published.png

Source Code Repository

A Source Code repository will be provided as a part of the Cloudvanti Sitecore subscription. This repository will be the place where you put your custom codes that will be deployed to the App Services. The master branch of this repository will be configured to trigger the CI pipeline, and

The Code Repository is provided a branch called the Master Branch. When a code is committed in the Master Branch, it will automatically trigger the pipeline CI. The source code can be deployed to 3 App Services: Staging, Production CM, and Production CD.

Cloning the Repository

The Cloudvanti Sitecore environment comes with a Git repository for you to place your projects in. It can be accessed through the Management Portal.

Here is how you can clone your projects into the repository:

  1. From the Management Portal select Repos, then select CloneRepository.
    <subscription-name>, for source code repository
     
    https://media.nimvio.com/Project_7b52b729-4b2f-4836-83ff-80c738b6f0a9/Media/assets_doc_sitefinity/site-setting2_published.png

     

  2. Click the Clone button.
     
    https://media.nimvio.com/Project_7b52b729-4b2f-4836-83ff-80c738b6f0a9/Media/assets_doc_sitefinity/site-setting3_published.png

     

  3. A prompt displaying the repository URL and credentials will appear.
     
    https://media.nimvio.com/Project_7b52b729-4b2f-4836-83ff-80c738b6f0a9/Media/assets_doc_sitefinity/site-setting4_published.png

     

Source Code File Structure

Once your files have been cloned into the Git repository, they will be sorted in accordance to the default file structure of a Sitecore Project known as Default File Cloudvanti (DFC).

 

https://media.nimvio.com/Project_7b52b729-4b2f-4836-83ff-80c738b6f0a9/Media/assets_doc_sitefinity/site-setting5_published.png

THINGS TO NOTE ABOUT FILES AND FOLDERS IN THE DFC

Cloudvanti CI/CD processes will use files from the DFC. This structure is also applied to existing Sitefinity Projects.

  1. All default folders and files in the DFC are of the same level as the .git. These files should not be moved to any other folders.
     
    https://media.nimvio.com/Project_7b52b729-4b2f-4836-83ff-80c738b6f0a9/Media/assets_doc_sitefinity/site-setting6_published.png

     
  2. However, you may add folders and files into the DFC, but it has to remain the same structure as the default.
     
    https://media.nimvio.com/Project_7b52b729-4b2f-4836-83ff-80c738b6f0a9/Media/assets_doc_sitefinity/site-setting7_published.png

     
  3. Provided by default in the DFC, the .sln and .csproj files should be found together in your project at all time as the CI/CD process will be running based on them.
     
    https://media.nimvio.com/Project_7b52b729-4b2f-4836-83ff-80c738b6f0a9/Media/assets_doc_sitefinity/site-setting8_published.png

     
  4. Be sure to have your dependencies and library referenced from nuget.org.
  5. Be sure to register all files within the .sln and .csproj folders.

Database File Structure

The .git folder will be the first thing you see after cloning into the Database Git repository.

https://media.nimvio.com/Project_7b52b729-4b2f-4836-83ff-80c738b6f0a9/Media/assets_doc_sitefinity/site-setting9_published.png

When deploying new scripts, a new folder will be created which contain the new scripts.

 

https://media.nimvio.com/Project_7b52b729-4b2f-4836-83ff-80c738b6f0a9/Media/assets_doc_sitefinity/site-setting10_published.png
https://media.nimvio.com/Project_7b52b729-4b2f-4836-83ff-80c738b6f0a9/Media/assets_doc_sitefinity/site-setting11_published.png


The name of folder and files should also comply with the naming convention as follows: