Skip to content

CodeChillAlluna/code-chill-outdated

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

code-chill

Travis branch License: GPL v3 Maintainability Codacy Badge Coverage Status

Master project : Online development environment.

If you want to know more about this project check our website : https://codechillalluna.github.io/code-chill/

Summary

  • 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 installation guide

Environment installation

Requirements

Download

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

Setup vagrant

  1. Move to the project directory : cd code-chill or cd cd code-chill-master if you download the project from the ZIP file.

  2. Run the command : vagrant up (It takes some times, up to 30 minutes).

  3. Wait for Vagrant to download all dependencies.

  4. Run vagrant ssh to connect to the virtual machine.

  5. You should be connected to the VM, in /vagrant where the project is located otherwise just go to to cd /vagrant.

Common vagrant commands

  • 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

Launch API and Client

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.

Release installation guide

You can run our releases in our vagrant or install it on your own machine.

You can download our releases here

Install with Vagrant

  1. Extract the release in your vagrant folder (You need to setup our vagrant first).

  2. Follow Vagrant installation guide through Setup Vagrant

  3. Launch API (Production mode)

  4. Launch Client (Production mode)

Install without Vagrant

  1. Extract the release on your machine.

  2. Install all the dependancies (Check install/install.sh in our repo to have all dependancies).

  3. Launch Server

  4. Launch Client

Vagrantless installation guide

Environment installation

Requirements

You will find all our project dependancies in our repo install/install.sh

Download

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

Usage

API (Spring)

Development Mode

To run the API in development mode, you will have to use the following command lines :

  1. cd /vagrant/src/spring : will place you in the source dictionnary.

  2. sh mvnw spring-boot:run: will compile the source code and launch the spring server

  3. Server API accessible at http://localhost:8080/

Production Mode

To build the API, you will have to use the following command lines :

  1. cd /vagrant/src/spring : will place you in the source dictionnary.

  2. sh mvnw clean package : will compile java files to create a runnable jar package.

  3. cd target : will place you in the build dictionnary of the project.

  4. 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".

  5. Server API accessible at http://localhost:8080/

Client (React)

Development Mode

To run the client in development mode, you will have to use the following command lines :

  1. cd /vagrant/src/client : will place you in the source dictionnary.

  2. yarn install --no-bin-links : will install if they are missing and update the dependencies of the project.

  3. 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 and npm install --no-bin-links After return in the right folder cd /vagrant/src/client and run again yarn start.

  4. Website accessible at http://localhost:3000/

Production Mode

To build the client, you will have to use the following command lines :

  1. cd /vagrant/src/client : will place you in the source dictionnary.

  2. yarn install --no-bin-links : will install if they are missing and update the dependencies of the project.

  3. yarn build : will build the project. If you have a problem with xterm : cd /vagrant/src/client/node_modules/xterm and npm install --no-bin-links After return in the right folder cd /vagrant/src/client and run again yarn build.

  4. serve -s build : will launch the project properly.

  5. Website accessible at http://localhost:5000/