Express is a most popular framework of node js. With Express we can create apis and web applications with different - different databases like mangodb, MySQL, PostgreSQL, Oracle . In this blog we will create a new express project step by step.
1. First of all need to install node js if installed
2. After node installation we will install EXPRESS GENERATOR. This is a platform for create a skeleton for express sites. For install Express Generator type the below command in your command prompt
npm install -g express-generator
3. Now we will create a express project. In your terminal locate to the directory where you want to create a project skeleton and type the below command. where nodetest1 is the name of your project you can chage it.
when you have done you can see a new project directory at that location and this is your express project.
Now in terminal locate to in this directory and install npm by using command
it will install DEPENDENCIES for this projects. After complete successfull installation we will start our web server by using command
Now open your browser and open url http://localhost:3000/. Now you are running your first express projects