
Please read this post first: Issue your ERC20 token with Solidity on Ethereum Blockchain [https://medium.com/p/6e640eb613ff]
Similar with ERC20 token, now let create a ICO Crowdsale with simple abstract:
- Start date : Tuesday, March 27, 2018 5:31:11 PM GMT+07:00
- Bonus end date : Wednesday, March 27, 2019 5:31:11 PM GMT+07:00
- End date : Thursday, March 26, 2020 5:31:11 PM GMT+07:00
- Normal price : 100 NKEM Tokens per 1 ETH
- Bonus price : 150 NKEM Tokens per 1 ETH
Some point difference with token here:
- Init total supply is zero
- Has time limit by start date and end date
- Has price
- Accept ETH transfer to contract. The price effect with bonus time, token total supply increase, send contract coin to sender, send eth coin to owner

Sample code here