Express+mysql's Blog (1)

Source: Internet
Author: User

Learning something must be done by oneself to try to know if it is true. Always want to practice node's use, there is no good idea, after the classmate reminded, found that I can actually use node to write a blog. I have a lot of work to do with the theory ╮ (╯_╰) ╭ that has to be tried first. Then decided to record the development process.

Pre-preparation

Of course, the installation of Express and MySQL! MySQL last one said how to install, here omitted not to mention.

?

Installation of Express:

NPM install–g Express-generator

This is the latest version of the Global Install Express.

After installation, enter Express–v, the display version number means that the installation is successful!

?

New Project

CD to the desired working directory

Express–e MyBlog

Then remember to have NPM install dependencies.

After the installation, find the directory below the App.js, add the Listening port App.listen (8000);

Run a little bit inside node.

Okay, open the localhost:8000 in the browser.

This is the picture that means the success of the building.

?

Let's get here today. Plan for routing and creating databases tomorrow,

Express+mysql's Blog (1)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.