Carmelo is a fast, scalable Java server framework designed for online games. It uses Netty and Fastjson for highly efficient network transmission and supports both TCP/HTTP protocols. It also uses Spring for business logic and Hibernate for data persistence. This framework implements its own servlet to handle client requests, so you can easily extend it to build your own server.
Pre-requisites: Please have Java 1.8, Maven 3.x, Eclipse and MySQL 5.6.x installed.
- git clone https://github.com/needmorecode/carmelo.git
- cd carmelo
- mvn eclipse:eclipse
- Eclipse -> file -> import -> maven -> existing maven projects -> select carmelo project
- carmelo project in Eclipse -> right click on pom.xml -> run as -> maven install
- cd src/main/java/carmelo/examples
- execute /server/my_test_user.sql in MySQL
- run or debug /server/ServerMain.java in Eclipse
- run or debug /client/TcpClientMain.java or /client/HttpClientMain.java in Eclipse