Download the project from Trac? - trac

I want to download this project: http://trac.sitecore.net/AdvancedDatabaseCrawler/browser/Branches/v2/
How should I download the whole project?

If you go up a couple levels (I just removed parts from the URL until it worked), you get this:
The project code and documentation has been moved to the following location:
​https://github.com/sitecorian/SitecoreSearchContrib
The codebase will not be maintained here any longer.
So, go to the new URL on GitHub and grab the git URL (git://github.com/sitecorian/SitecoreSearchContrib.git), then either use git:
git clone git://github.com/sitecorian/SitecoreSearchContrib.git
Or paste the URL into a git tool.

Related

How can I download the source code of Artifactory NPM modules?

I need the source code of the NPM modules inside the artifactory installation #jfrog folder artifactory-oss-7.7.3/app/frontend/bin/server/dist/node_modules/#jfrog. Checking the package.json files I see the following
,"_resolved": "https://entplus.jfrog.io/artifactory/api/npm/npm-virtual/#jfrog/nodejs-commons/-/#jfrog/nodejs-commons-2.0.2.tgz"
However, when I try to follow the link I get a Forbidden error. I also see references to a git repository:
git.jfrog.info/~odedb/jfrog-artifactory-nodejs-client.git
However, I get a timeout error for accessing. Any clue on how to download these files?
The latest version of Artifactory OSS source code can be downloaded from https://jfrog.com/open-source/.
The direct download link: https://releases.jfrog.io/artifactory/bintray-artifactory/org/artifactory/oss/jfrog-artifactory-oss/[RELEASE]/jfrog-artifactory-oss-[RELEASE]-linux.tar.gz
[RELEASE] is replaced automatically to latest, if you need specific version, pls replace with version number.

What is the proper way to upload a Vue.js app to GitHub?

I tried uploading my files to Github, but GitHub says it's too big.
I then uploaded the content of the dist folder after building for production.
This worked just fine, but it's not very useful.
What is the proper way to upload a Vue.js app to GitHub?
What you generate (binary files which can be big) should not be versioned/pushed to GitHub.
It is better to use a local plugin which will, on GitHub side, build, tag and publish a release associated to your project.
For instance: semantic-release/github.
You can combine that with a GitHub Action, which can take that release, and deploy it on a remote server of your choice (provided it is publicly accessible from GitHub): see for example "How to deploy your VueJS using Github Actions (on Firebase Hosting)" from John Kilonzi.
For your existing dist, you should delete it (from Git only, not your disk) and add it to your .gitignore:
cd /path/to/repo
git rm --cached dist
echo dist/>>.gitignore
git add .gitignore
git commit -m "Delete and ignore dist/"
git push
What happens if I add a node module( like if I decide to add an image cropper). How can the other contributers deal with that?
You need to add the declaration of that module in your project, not version the module itself. For instance, using Vue.use.
Also: I host the app on netlify. It builds the site straight from github. But it wont be able to build the site if gihub doesnt have the dist folder...
See "How to deploy your Vue app with Netlify in less than 2 min!" from Jean-Philippe Fong: Netlify itself will build the dist (from your GitHub project sources) and publish it.
You should add a .gitignore file to the root of your directory where you can ignore files and directories.
Most typical ones to ignore are the following:
node_modules
/dist
.env
.vscode

How To Run A Github Repository?

I'm a coding newbie, so this may be sort of a dumb question. I was working on an SQL project to learn the language and I wanted to know if there was a way to download and execute a Github repository, I haven't used Github before. Thanks!
If you are a newbie, I think you should learn how to use git.
You can refer the link below: https://education.github.com/git-cheat-sheet-education.pdf
Basic steps:
Clone or download source code from Github.
You can download it directly, or use a tool like Git-bash, tortoise git...
Run this source code, depending on the language of the source code.
In order to run any code in a Github repository, you will need to either download it or clone it to your machine. Click the green "clone or download repository" button on the top right of the repository. In order to clone, you will need to have git installed on your computer. Then, follow these instructions. You could also just click download. Once you have it on your machine, how you run the code will depend on what type of code your project is written in.
I'm assuming that you found a repository relating to SQL on Github that you want to run, the best thing to do is to scroll down and read about that repository I'm sure most of the time there are instructions there on how to install or run the repo and from there if you don't understand something try Googling that keyword I'm sure Google has an answer for that and also best way to learn.
If you use codesandbox you can import and export from it to github. So, when you go to codesandbox, the very left bar, click on the rocket (deployments) and deploy to Github (pages). But I'm sure there must be a way to also do it from github via github actions, but I couldn't figure out either
You cannot directly run the code because it only can run based on specific environments like using python. Instead of using git to clone the code, you could download the code zip file through the code button on the github project.
Step 1:
Open GitHub and navigate to the main page of the repository.
Step 2:
Under the repository name, click on Clone or download.
Step 3:
Select the Clone with HTTPs section and copy the clone URL for the repository. For the empty repository, you can copy the repository page URL from your browser.
Now just go to your Ide(editor) and open terminal just enter the below command, click to Enter.
command : git clone [url]
$example -> "git clone https://github.com/ImDwivedi1/Git-Example.git"
Now you can see folder has been created in your directory.

How can I clone a CodenameOne IntelliJ project and continue working on it?

I'm using a .gitignore file that was recommended for use with CodenameOne projects (See the blog post) and have committed my project to GitHub. Now I want to retrieve that project to a new PC and continue working on it but I'm having endless troubles doing it.
Shai shared a "quick trick" workaround which involves creating a new project then copying the relevant files from a clone of the Git into it, but then it's not a proper clone of the github repo that can be worked on and then synced back up to the remote.
So what I'm asking is: what steps (and troubleshooting resouces) would I use to ensure that:
I am storing the right files to the GitHub Repo to enable success
The IntelliJ Project will work with the retrieved files
I can commit changes back to the Repo going forwards.
Sorry, I'm a bit new to juggling GitHub repos and CN1's plugin structure for Idea has me mystified (I tried merging a new project with a directory which has a clone of the GitHub repo and the CN1 plugin is disabled - can't click on it)
I resorted to using the following .gitignore (using Codepoint One with IntelliJ IDEA):
# macOS
.DS_Store
# build artifacts
/build/
/dist/
/lib/impl/
/native/internal_tmp/
/out/
# idea
/.idea/**/workspace.xml
/.idea/**/tasks.xml
*.iws
With this setting, most of the IntelliJ configs are committed, as well as some binaries: CodeNameOneBuildClient.jar, JavaSE.jar, lib/CLDC11.jar, lib/CodenameOne.jar, lib/CodenameOne_SRC.zip.
This is not optimal (the binaries don't really belong in Git and take about 40 MB combined). But this way I can clone the project on a different machine and start working right away. It also doesn't produce Git diffs on every build — but only if the libs are updated.
IntelliJ/IDEA Codename One projects are nearly identical to NetBeans Codename One project with the one major difference being the additional idea directory. Just copy that directory from a working intelliJ project and add it to the gitignore. The project should work.

Rally - clone existing app

I'm trying to create a custom release burnup app for my group. There is an existing app called 'Release Burnup' in Rally, and based on the instructions for rally-app-builder I thought I would be able to clone this app as a starting point.
However, when I use the rally-app-builder clone RallyApps ReleaseBurnup command, it doesn't seem to do anything except change the title in the output html files to "Son of ReleaseBurnup". When I tried the same thing with the example from the github page (which uses rally-app-builder clone RallyApps StoryBoard) then it seems to be successfully cloning an app, with updates to the App.js file, etc.
I'm guessing that I might be using the wrong name to clone, but I'm not sure how to know what names are valid for this command to clone the app I want.
Unfortunately rally-app-builder clone functionality predates newer developments and the availability of source code of catalog apps from RallyApps/app-catalog, so it does not support drilling down those directories.
clone RallyApps StoryBoard works because there is a StoryBoard app at that location. There is no ReleaseBurnup there. ReleaseBurnup code is not available.
Here are the steps to build an app from javascript source files from GitHub app-catalog repository
Prerequisites:
Node.js
rally-app-builder
Get the source to a local directory (you may either fork the
app-catalog repo, or download zip from the same location):
in terminal, cd to the directory of the app you want to work on, and call this command:
rally-app-builder build.
As a result a deploy folder is created with App.html and
App-uncompressed.html inside, and App-debug.html is created in the
root folder of the app.
These steps make sense only if you intent to customize the catalog app and want to use the source as basis. If you want to use a catalog app as it was designed, install the app directly from the AppCatalog as described in this help document.