preface
This article focuses on what you need to do to prepare for a new project and how to deal with related issues. The article is a summary of personal experience, so there are inevitably omissions, please forgive me.
Note:
- What preparations need to be made should be based on the actual situation of the project, not all the contents described below
- Some things can be prepared during development, preferably in advance
- The following example is basically take Ali cloud site for example, just a superficial introduction
Data preparation
If your entire project is based on the enterprise, you need to prepare the following materials:
- Business License (photo version)
- Front and back of corporate ID Card (photo version)
- Corporate bank account information
The server
Must be. Server is a must, you can choose to rent cloud server or local server, generally speaking, are renting cloud server, here also only introduce cloud server (because I also did not involve the local server o(=•ω•=)m)
(1) Cloud server I usually choose Ali Cloud server, because I am familiar with the operation of this website.
(2) First go to Aliyun website to register an account, and then do real-name authentication for the account (Have to do)
(3) If it is to do enterprise certification (suggested), you need to have a business license, and then there will be a number of certification methods for you to choose, I generally choose the enterprise to public bank certification.
(4) After selecting the public bank authentication, fill in the bank information. After ali cloud official will have a small amount of money to your public account, and then you input this small amount of money, the certification passed.
(5) after the account real-name authentication, you can start to buy the server, according to the project to choose the appropriate server specifications, but the early stage is just for development, you can not have high specifications, to the later project really online, you can upgrade the server specifications. PS: Linux servers are recommended
The domain name
Domain names are generally required, but not if you want to access projects directly from an IP address.
instructions
- Domain name can also be registered in multiple service providers to buy, I generally in Ali cloud registered to buy domain name
- It is recommended to choose those famous websites to register domain names, do not go to those small websites to register domain names, there will be many pits of….. T_T
- Decide in advance what domain to register (note: your preferred domain may already be registered by someone else)
buy
(1) AliYun Website Click here
(2) Click here to register the domain name, and then go to buy the domain name you want
(3) After purchasing the domain name, you need to do the real-name authentication for the domain name, as required by the steps
Domain name resolution
Bind the domain name to the server IP address. When the browser accesses the domain name, the DNS automatically resolves the domain name to the server IP address you set
(1) In domain name Management office, click Resolve
(2) Add parsing records
(3) Fill in the following figure and save!
For the record
After the purchase of a domain name, and can not be used immediately, but also need to do the record, to be able to use formally, different areas of the record requirements are not the same.
(1) Prepare the “record service number” before filing, which can be obtained from the server (the premise is that you have purchased the server)
(2) Click here for filing
(3) after the record process, step by step, the record of the whole time about 7-20 days, if your domain name is bound to the enterprise, but also need enterprise legal person to assist the record, such as scan face authentication.
Ali Cloud record to see this: the first record process
PS: The filing process is quite tedious, ali Cloud side of the filing will require you to download ali Cloud APP
The public,
Not must. Address: mp.weixin.qq.com/
Simple function introduction:
- Automatic message reply
- Custom public menu, jump to specify links or small procedures and so on
- Publish the article, edit the article in the official background, publish
- Template message (common), through code development, can be sent through the public number specified message to the specified user
- Customer service function
- See this article for more details
Registration certification
(1) First register a public account, as shown in the picture. Choose the type according to your needs, generally speaking, choose the service number
(2) after the registration, to the public number to do the certification, need 300 RMB fee
Small program
Not must. At present, the small program market is very hot, many projects are required to have a supporting small program
See another article I wrote about the full cycle process of applets development for more details
Photo storage
Not must. If the project needs image storage, it is recommended to use Qiuniuyun storage (there is a free amount of use), in simple terms, is your picture, stored in the qiuniuyun website, when using the URL link to use.
Look at the website here
Registration and real name
(1) Register a Qiniuyun account on the website
(2) After the user registration, the real-name authentication (mandatory), you can choose whether to do personal or enterprise real-name authentication, if the enterprise authentication, need to fill in the enterprise account information.
Storage Space Usage
(1) Create storage space
(2) After the domain name is created, customize the accelerated domain name (it must be a registered domain name) in the storage space. For example, if your domain name is baidu.com, you can bind the accelerated domain name to img.baidu.com. The prefix img is used as the host record during domain name resolution
(3) then go to the domain name vendor (the platform where you bought the domain name), resolve the domain name, the type is CNAME, the host record prefix must be consistent with the custom accelerated domain name prefix, for example, the custom accelerated domain name prefix is “IMG”, then you also need to fill in the host record as “IMG” during the domain name resolution.
(4) After that, see the detailed development document here
PS: The above is only a very superficial introduction, the actual picture storage, qiniuyun also supports a lot of functions, such as picture compression, picture cutting and so on.
Short message service
Not must. Now SMS is generally used to send verification code, depending on whether your project needs it, here we recommend the use of Ali Cloud SMS service, the price is about 200 yuan 5000, SMS use period of validity is 2 years
Ali Cloud [SMS service can be seen here]
instructions
- Ali Cloud SMS service, can be set in its console to send SMS restrictions and other functions
- The purchase of SMS package is valid for 2 years, that is, after 2 years, regardless of your SMS has not finished, are equivalent to no!
- Send SMS must have [SMS signature]
- You need to create a TEMPLATE for sending SMS messages, such as verification code SMS messages and SMS notification messages
Purchase and Use
(1) Buy SMS here
(2) After the SMS package is purchased, it can be tested in the picture below
(3) Then you need to create your own SMS signature and template
(4) See the detailed development document here
SSL certificate
Not must. Although it is not necessary, most formal projects will be configured with an SSL certificate, namely HTTPS, on the domain name.
If your project involves applets, you will probably need SSL certificates for your domain name, because applets do not support HTTP, only HTTPS!
Description:
-
Certificate can also be applied for free, after applying for a certificate, you need to go to the server to do the corresponding configuration to take effect
-
For example, HTTPS says this:
- When you configure SSL certificates, domain name access will be flagged for security
use
(1) See here for details about SSL certificates
(2) After purchasing the domain name certificate, you need to download the certificate, upload it to your server, and configure it accordingly
PS: Depending on how your project is installed and deployed, you need to do different configurations