I'm developing a web application in Go on Nitrous.io and i want to install Less for css compilation. Is there a way of installing NPM on a Nitrous box setup for Go development?
Nitrous IDE now include autoparts to manage additional package and nodejs is available:
http://blog.nitrous.io/2013/09/18/introducing-autoparts-for-nitrous-io.html
In the terminal, try:
parts install nodejs
Related
I've built my own Electron binaries. I've put those binaries into ./node_modules/electron/dist. Everything works fine when running the app with npm start from the development environment, but when packaging the app with electron-builder, Electron lacks that functionality that I added. It looks like electron-builder does not take whats in node_modules/electron when packaging an app.
Can somebody tell how I can use own Electron binaries with electron-builder?
It can be achieved by using the electronDist property in the electron-builder's build section of package.json.
As it is the Linux version of OS, I tried firing, hoping that would work
apt-get install jq
But it says apt-get: command not found.
How I can install new binaries as I wanted to add some extra logic in the startup script which required few extra libs to be installed first.
Please correct me if I am doing anything wrong.
Container OS is locked down. You are prohibited from installing programs. Create a container and run the command in the container.
Container-Optimized OS does not include a package manager; as such,
you'll be unable to install software packages directly on an instance.
However, you can use CoreOS toolbox to install and run debugging and
admin tools in an isolated container.
Container-Optimized OS Overview
https://cloud.google.com/container-optimized-os/docs/how-to/toolbox
You can use toolbox to install the package
You can specify a startup script through the metadata server. The script would be run at boot time.
I have been trying to install Install-Package Google.Apis.Drive.v3 using this source with the difference that I have Ubuntu-18.04 instead of Windows.
I know it may be a simple question but I have been trying research how to do that from this morning. I installed sudo apt install nuget on my machine and have been trying to add packages or as in this case the Google.Apis.Drive.v3 package but no luck.
I went through this source which was useful, but does not carry information I was able to replicate on my Linux machine.
Also this source, this one and this one too. But also this last one is for Windows and was not very useful.
How do I install Google Apis Drive V3 via command line easily as it is documented for windows but on Ubunbtu-18.04?
Thanks for pointing to the right direction for solving this problem.
Solution
The way you install your Drive API's library is depending on the programming language you are aiming to use. These are the following commands to run depending on the different languages to interact with the API (with their respective links to the source of the setup):
Python:
pip install --upgrade google-api-python-client google-auth-httplib2 google-auth-oauthlib
C#/.NET:
Create a new Visual C# Console Application project in Visual Studio.
Open the NuGet Package Manager Console, select the package source nuget.org, and run the following command:
">Install-Package Google.Apis.Drive.v3
Java:
gradle init --type basic
mkdir -p src/main/java src/main/resources
Node.js:
npm install googleapis#39 --save
For the Browser check out the steps to follow here
I hope this has helped you. Let me know if you need anything else or if you did not understood something.
NOTE: For all Ubuntu-18.04 users that wish to install via command line the correct way is: sudo dotnet add package Google.Apis.Drive.v3
I have install Git, Node.js and NPM on my machine and have successfully been able to run a progressive web app on Chrome through the LocalHost. Now what about when I want to run this web app on a public server? Will I have to install Git, Node.js and NPM on my web hosting account? Or are these components already installed on web hosting servers in general (like would be an app like cPanel)?
By the way, would you be able to recommend any good FTP application for Mac that can upload zillions of files easily (not 1 by 1)?
You will need Node on the host server, but not NPM or Git (although NPM will be there by default when you install Node).
Typically what you want is to setup a "Continuous Integration / Continuous Delivery" platform. You can use free options like Travis or Jenkins or you can just use a shell script and run it through AWS Lambda or something like that.
Very simplified version:
You push code to Git
CI/CD detects the code check-in (polls) and pulls latest from Git on an Agent
CI/CD runs a "build" on the Agent, which for Node is at least npm install but can include Grunt, Gulp, Webpack, or a host of other useful steps.
CI/CD publishes the result of the build to a target server.
Here you have five machines involved:
Git server
Your local dev box
CI/CD server
CI/CD agent
production server
Hope this helps you get started in the right direction.
I'm using the cloud IDE nitrous.io for developing a php app,
and I want to ask if it's possible to preview my app using the preview menu?
thanks for help.
Edit: PHP is now available on Nitrous.IO. PHP5, Apache2, and Composer can be installed with the Autoparts package manager. To install these tools, run each of the following commands within the console:
parts install php5
parts install apache2
parts install composer
You will also need to start the Apache server once installed.
parts start apache2
Take a look at the PHP guide for more information.
set in php.ini:
short_open_tag = On
or use <?php