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 Maven 3.x, Eclipse and MySQL installed.
- git clone https://github.com/needmorecode/carmelo.git
- cd carmelo
- mvn eclipse:eclipse
- Eclipse -> file -> import -> git -> select repository and import carmelo project
- carmelo project in Eclipse -> right click on pom.xml -> run as -> maven build
- 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