Master project : Online development environment.
If you want to know more about this project check our website : https://codechillalluna.github.io/code-chill/
-
If you want to easily set up our project using our vagrant click here (Recommended)
-
If you want to install our latest release click here
-
If you want to set up our project without vagrant click here
-
Vagrant is needed, you can download it here : https://www.vagrantup.com/downloads.html
-
VirtualBox needs to be installed. You can download it here : https://www.virtualbox.org/wiki/Downloads
-
Git If you want to clone our repo instead of downloading a ZIP file. https://git-scm.com/
Choose either of the solutions:
-
Cloning the repository :
git clone https://github.com/CodeChillAlluna/code-chill.git
(Recommended) -
Downloading the repository :
https://github.com/CodeChillAlluna/code-chill/archive/master.zip
-
Move to the project directory :
cd code-chill
or cdcd code-chill-master
if you download the project from the ZIP file. -
Run the command :
vagrant up
(It takes some times, up to 30 minutes). -
Wait for Vagrant to download all dependencies.
-
Run
vagrant ssh
to connect to the virtual machine. -
You should be connected to the VM, in
/vagrant
where the project is located otherwise just go to tocd /vagrant
.
-
Connect to the VM:
vagrant ssh
-
Shutdown the VM:
vagrant halt
-
Launch the VM:
vagrant up
-
Reload the VM:
vagrant reload
-
Delete the VM:
vagrant destroy
-
Verify packages are up to date:
vagrant provision
The last step is to run the API and the Client. In order to do that you will need to open a second terminal connect to the vagrant vagrant ssh
. One terminal to run the API and the other one for the Client.
Follow the Usage part to run them. If you only want to run the project to try it and you don't plan to install it on a real server, run the API and the Client in Development mode.
You can run our releases in our vagrant or install it on your own machine.
You can download our releases here
-
Extract the release in your vagrant folder (You need to setup our vagrant first).
-
Launch API (Production mode)
-
Launch Client (Production mode)
-
Extract the release on your machine.
-
Install all the dependancies (Check
install/install.sh
in our repo to have all dependancies). -
Launch Server
-
Launch Client
You will find all our project dependancies in our repo install/install.sh
Choose either of the solutions:
-
Cloning the repository :
git clone https://github.com/CodeChillAlluna/code-chill.git
(Recommended) -
Downloading the repository :
https://github.com/CodeChillAlluna/code-chill/archive/master.zip
-
Downloading our release :
https://github.com/CodeChillAlluna/code-chill/releases
To run the API in development mode, you will have to use the following command lines :
-
cd /vagrant/src/spring
: will place you in the source dictionnary. -
sh mvnw spring-boot:run
: will compile the source code and launch the spring server -
Server API accessible at
http://localhost:8080/
To build the API, you will have to use the following command lines :
-
cd /vagrant/src/spring
: will place you in the source dictionnary. -
sh mvnw clean package
: will compile java files to create a runnable jar package. -
cd target
: will place you in the build dictionnary of the project. -
java -jar spring-0.0.1-SNAPSHOT.jar
: will launch the Spring project, depending on what you are using the version might not always be "0.0.1". -
Server API accessible at
http://localhost:8080/
To run the client in development mode, you will have to use the following command lines :
-
cd /vagrant/src/client
: will place you in the source dictionnary. -
yarn install --no-bin-links
: will install if they are missing and update the dependencies of the project. -
yarn start
: will check your code validity and launch the node server. If you have a problem with xterm :cd /vagrant/src/client/node_modules/xterm
andnpm install --no-bin-links
After return in the right foldercd /vagrant/src/client
and run againyarn start
. -
Website accessible at
http://localhost:3000/
To build the client, you will have to use the following command lines :
-
cd /vagrant/src/client
: will place you in the source dictionnary. -
yarn install --no-bin-links
: will install if they are missing and update the dependencies of the project. -
yarn build
: will build the project. If you have a problem with xterm :cd /vagrant/src/client/node_modules/xterm
andnpm install --no-bin-links
After return in the right foldercd /vagrant/src/client
and run againyarn build
. -
serve -s build
: will launch the project properly. -
Website accessible at
http://localhost:5000/