qmeng222 / Bicycle-Shop-with-Express

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bicycle Shop

Overview:

Accelerate the launch of your bicycle shop with this customizable solution built on Node.js and Express.js. It offers an intuitive interface for users to browse a catalog of bicycles with detailed descriptions, pricing, and star ratings. Its flexibility enables it to be applied to a wide range of e-commerce businesses.

Project Overview


URLs:


Setup:

  1. npm init --y to create a new package.json file with default values for all fields. The --y flag stands for "yes" (automatically answer "yes" to all the prompts), and package.json file will be created. package.json is a file that describes the metadata of a Node.js project
  2. Install Express.js npm i express, and save under dependencies of package-lock.json.package-lock.json is automatically generated by npm when installing packages. It describes the exact dependency tree of the project, including the specific versions of each package and their dependencies.
  3. Install Nodemon npm i nodemon --save-dev, and save under devDependencies of package-lock.json
  4. Installs the EJS (Embedded JavaScript) package npm i ejs EJS is a template engine for Node.js and allows to generate HTML dynamically based on data.
  5. Custom script in the the package.json file:
    "scripts": {
     "server": "nodemon index"
    },
    
  6. Start the server for the Node.js application: npm run server

About


Languages

Language:CSS 55.6%Language:EJS 35.4%Language:JavaScript 9.0%