Build status:
The steps below explain how to get started with the sources. If you just want to run the server locally, please have a look into the wiki - installation. If you want to contribute, please get in touch with us, see wiki - Community before you start.
After a fresh git clone you get the robertalab project folder. It includes everything you need to setup and extend your own browser programming environment. License information is available in the docs folder.
Things you need on your computer:
- Java 1.8
- Maven >= 3.2
- Git
- Web browser
If you would like the server to compile code for the different systems, you need to install additional software:
on linux:
- Arduino based robots
- sudo apt-get install libusb-0.1-4
- sudo apt-get install gcc-avr binutils-avr gdb-avr avr-libc avrdude
- NXT
- sudo apt-get install nbc
- Calliope
- sudo apt-get install gcc-arm-none-eabi srecord libssl-dev
- micro:bit
- pip install uflash
on windows:
- Calliope
- install gcc-arm-none-eabi (see: http://gnuarmeclipse.github.io/toolchain/install/)
- install srecord (see: http://srecord.sourceforge.net/)
- micro:bit
- install python
- pip install uflash
Please also check our wiki for detailed installation instructions, development procedure, coding conventions and further reading. We also use the github issue tracking system. Please file issues in the main project robertalab.
git clone git://github.com/OpenRoberta/robertalab.git
cd robertalab/OpenRobertaParent
mvn clean install
Get a coffee! Might take a couple of minutes.
A successful build looks like:
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] RobertaParent ...................................... SUCCESS [ 2.479 s]
[INFO] Resources .......................................... SUCCESS [ 0.045 s]
[INFO] OpenRobertaRobot ................................... SUCCESS [ 34.604 s]
[INFO] RobotEV3 ........................................... SUCCESS [ 21.642 s]
[INFO] RobotNXT ........................................... SUCCESS [ 17.104 s]
[INFO] RobotArdu .......................................... SUCCESS [ 17.522 s]
[INFO] RobotNAO ........................................... SUCCESS [ 4.162 s]
[INFO] RobotMbed .......................................... SUCCESS [ 13.721 s]
[INFO] OpenRobertaServer .................................. SUCCESS [ 24.496 s]
[INFO] TestResources ...................................... SUCCESS [ 0.761 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:16 min
[INFO] Finished at: 2017-07-14T21:11:10+02:00
[INFO] Final Memory: 60M/540M
[INFO] ------------------------------------------------------------------------
If you have a fresh clone of the server, make sure that the OpenRobertaServer folder has a subfolder db-x.y.z with the database inside, where x.y.z is the current version from the server You can either
-
copy the folder dbBase (also in OpenRobertaServer) under the name db-x.y.z
-
or create an empty database with
./ora.sh --createemptydb OpenRobertaServer/db-x.y.z/openroberta-db (from the root folder)
If you update the server with git pull, your database will not be changed.
cd .. # return to the root folder
./ora.sh --start-from-git # start the server using default properties
You can also run ./ora.sh --help
for more options.
Start your browser at: http://localhost:1999
That's it!
You can follow the test status on https://travis-ci.org/OpenRoberta/.
Development happens in the develop
branch. Please sent PRs against that branch.
git clone git://github.com/OpenRoberta/robertalab.git
cd robertalab
git checkout -b develop origin/develop
We are using Blockly, it is located in a separate repository. The build of the blockly is only done in the OpenRoberta/Blockly project and then copied to the OpenRobertaServer/staticResources. You can not build Blockly in OpenRobertaServer project directly.