Online company will be like any other company with particular objects. Process would be same. You need to decide between private / public / one man company, form. You need to decide who will be the directors and get digital signature and KYC ready as also shortlist few likely names. You may contact any Practicing Company Secretary or Chartered Accountant, to do the other formalities.