Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mariusmonkam/landing-page-express-node
This is a lading page build with express and node
https://github.com/mariusmonkam/landing-page-express-node
express javascript node nodejs pug
Last synced: about 2 months ago
JSON representation
This is a lading page build with express and node
- Host: GitHub
- URL: https://github.com/mariusmonkam/landing-page-express-node
- Owner: MariusMonkam
- Created: 2019-10-12T18:20:28.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-11T09:11:00.000Z (about 2 years ago)
- Last Synced: 2023-03-07T17:00:41.802Z (almost 2 years ago)
- Topics: express, javascript, node, nodejs, pug
- Language: HTML
- Size: 188 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# landing-page-express-node
This is a lading page build with express framwork
Express is a Node.js module that gives us a full framework,
it gives us a routing system and an HTTP server.
to install it you just need to type on our terminal
`npm install express` you may choose to install it global by ading `-g` on the previous command
``npm install -g express` you can also use yarn `yarn add express`
Once that's done we'll create a new text file and call it`app.js`
We'll also need our package.json file, we can do that with `npm init`
We'll need body-parser that will help us parse different types of data
including form data. to do it use `yarn add body-parser `or `npm install body-parser`
we ll also need Pug which is a HTML templating engine, which means you can write
much simpler Pug code, which Pug compiler will compile into HTML code,
that browser can understand, and nodemon to auto reload the server .
our package.json will look like this
```javascript
{
"name": "company_website",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"dependencies": {
"body-parser": "^1.19.0",
"express": "^4.17.1",
"nodemon": "^1.19.3",
"pug": "^2.0.4"
}
}
´´´inside app.js
let's define the variables
//initialize the app
//setting up View
//Setting view
//setting view engine
//create route
happy hacking