The Simplest Way to Manage Your Entire Dev Infrastructure!
Koding is a development platform that provides a manner for you to build up your environment from scratch. Developers get everything they need to spin up full-stack, project-specific environments in seconds. Share them, update them, and manage infrastructure from a simple interface.
You can try Koding now on koding.com
Koding can be run as a docker container, it requires docker-compose
which
you can install from here. For the
rest you can follow these steps:
git clone https://github.com/koding/docker-compose.git koding-docker-compose
cd koding-docker-compose
# Requires docker-compose version >= 1.6
docker-compose up -d
Then you will be able to access Koding UI via port 8090
(e.g. localhost:8090) on your host.
Yes, you can run koding on koding.com by using the provided .koding.yml
For more information about stacks: koding.com/docs
If you wish to work on Koding itself, you need to install following software packages:
You can run docker-compose environment for developing koding by executing commands in the following snippet.
git clone https://github.com/koding/koding.git
cd koding
docker-compose up
Now you can navigate to http://localhost:8090 to see your local Koding instance. Enjoy!
docker-compose will attach working tree to /opt/koding
in backend
service container. Changes in edited files will be visible in the
runtime environment.
docker-compose up
will build koding working tree every time. If you
did not make huge changes and fine with current state then you can
just run backend service directly with following command.
docker-compose run --service-ports backend
You will need to run client builder to see your changes in built frontend code. This can be achieved with command below.
docker-compose exec backend make -C /opt/koding/client
If you need to execute some commands by yourself in runtime environment then you can use following snippet to start a shell in backend service container.
docker-compose exec backend bash
You can follow coffeescript-styleguide that we are relying on.
If you wish to work on Koding itself, you need to install following software packages:
- Go v1.7
- Node.js v0.10
- CoffeeScript v1.8.0
- Supervisor
If you have the above software packages installed on your computer, you can follow steps for running the instance:
git clone https://github.com/koding/koding.git /your/koding/path
cd /your/koding/path
node -v # make sure your node version is not greater than `0.10.x`
npm -v # make sure your npm version is 2.15.x
coffee -v # make sure your coffeeScript version must be 1.8
npm install
You should have packages ready for running build specific scripts.
./configure # create necessary config files
./run install # start to install dependencies
./run buildservices # build the services
./run # run all services
As a result of this, you will have a file watcher watching your backend files (both node, and golang) and restart services when it's necessary. Now open up another terminal and run the following commands:
cd /your/koding/path
cd client # move into frontend client folder
npm install # install client dependencies
make # this will run a client watcher for you
Right now you should have 2 different watchers for (1) your backend files, (2)for your frontend client files. Now you can navigate to to see your local Koding instance. Enjoy!
Koding is licensed under Apache 2.0.
The main purpose of this repository to continue evolve Koding in order to make it more stable and create the best development experience ever. If you're interested in helping with that, please check our open issues. You can also join the conversation in our slack team!