章節 1 What’s Nepenthes? Nepenthes is a sub-middleware for iOS & macOS App development,which sets the standards for java back-end and Objective-C front-end development.Nepenthes back-end is based on Apache Tomcat or other J2EE compatible middleware by extends Nepenthes library.Nepenthes front-end is mapping to back-end with the support of Nepenthes framework. Nepenthes simplifies development process and shortens development lifecycle,it ensures the communication layer safe and solid,let your team focus only on business logic. Based on Nepenthes,your organization can develop very complicated enterprise Apps rapidly,reduce back-end and front-end teams employees nearly to half. Reduce the communication errors in the development debugging,raise project development speed dramatically. Nepenthes is for senior back-end Java developers and senior front-end Objective-C developers.Before you start to read it,we assume you are very familiar even master in using Mac,Apache Tomcat,MySQL,SQL Language,Java JSP,Servlet or Objective-C. You needn’t master Java and Objective-C at the same time,Java developers focus on the back- end section,Objective-C developers focus on front-end section. Nepenthes is the fruit of over 20-year Java and over 8-year Objective-C development experience.The author worked in Borland for 8 years responsible for enterprise products support:Borland VisiBroker(CORBA middleware) and Borland Enterprise Server(J2EE middleware). 章節 2 Development Environment This book is for development practice instead of theory,so we will jump to development environment configurations.Nepenthes is targeted for iOS & macOS development,you should have a MacBook or iMac with the latest macOS version updated.Before we started,confirm you are senior Java or Objective-C developer,Java for back-end,Objective- C for front-end. Your Mac(refers to MacBook or iMac hereby.) should install the following software: macOS(10.11.6) JDK(1.8.0) Xcode (7.3.1) NetBeans(8.0.2) MySQL(5.6.24) Tomcat (7.0.55) Before we started to study Nepenthes,please make sure you have got the above softwares and installed properly.All the softwares are free to use and install.To keep the same testing result with this book,we recommended strongly to use the same version showed in the parentheses. Objective-C front-end developers only need to meet macOS and Xcode of above requirements list,Java back-end developers need to meet all of them except Xcode. But for testing convenience,we recommend strongly to install all of them. By the way,you should be very familiar to Mac usage regardless Java back-end developers and Objective-C front-end developers. The environment built with the above six softwares is the complete Nepenthes development environment. The production OS will not limited to macOS,it also support Linux and Unix,the deploy methods are same as described in this book. The author’s production environment is Ubuntu Linux,as for develop and debug easily,we will lead to to set up a complete development and production environment. Re:all the above softwares you can download from its official website or from this book’s official website www.everdow.org We recommend strongly to download Nepenthes Mac App (https://itunes.apple.com/app/nepenthes/id764623073 ) from Mac App Store,all the softwares,libraries and frameworks are all included in the Nepenthes App. 2-1 Nepenthes App - Home 2-2 Nepenthes App - Download If you have any question to submit,you can raise question in Nepenthes Mac App,we will response you there. You can also send email to us [email protected] 2-3 Nepenthes App - Feedback 小節 1 MacOS 2-1-1macOS version check window macOS is shipped with your Mac,please be sure it is the latest release version.Check your Mac from top-left Apple logo’s first menu item: About This Mac. If your macOS is not the lastest version,please update from Mac App Store by clicking the Software Update…button. Updating to lastest macOS version maybe a long time process but necessary,so please make sure to be patient with it.To avoid unpredictable errors,please do not install pre-release version of macOS for developers. Your Mac’s version should not be the very same as above screenshot,but should be not be lowed than 10.11.6 Mac’s update is a very large bundle for download and update,before you started to learning this book,you should take your time to make sure your Mac has updated to the lasted release version.Please remember DO NOT install macOS pre-release version for Apple developers,that the not the release version,it maybe lead to unpredictable errors,which will make you feel confuse when you debugging while learning. We assue you have been familiar with Mac basic use,this book is for senior developers,so if you are not familiar with Mac use,please learn it first or go Apple Store’s local Genius Bar to take some free classed for Mac. 小節 2 Xcode 2-2-1 Xcode Startup Window Xcode is the Objective-C IDE(Integrated Development Environment),it is free and can be downloaded from Mac App Store.To avoid unpredictable errors,please make sure you install Xcode release lastest version,do not install pre-release version for developers.So far to writing this book,the Xcode release stable version is 7.3.1 Xcode is for Objective-C front-end developers,Java back-end developers will not use it,but for testing convenience,we recommend strongly to install it anyway. Your Xcode version should not be lower than 7.3.1,though it will not occur any error,but to keep the same development environment,we recommend to updated to the same version. Xcode is Apple’s only IDE for developing iOS,macOS and tvOS apps,it supports Objective-C and Swift languages at the same time. Xcode is very large application,so before you started learning this,please take your time to download or update Xcode to the proper version we mentioned above. If you have never used Xcode,it is not the problem to stop you learning this book. You only need to follow the examples step by step,after some examples you will learn to use Xcode’s basic functions.