Code Monkey home page Code Monkey logo

advanced-css-natours's Introduction

ADVANCED-CSS-AND-SASS-NATOURS-PROJECT

  1. BEM syling of CSS
  2. SASS Variables

Live Server

CLICK ME

What is SASS?

  • CSS preprocessor, an extension of CSS
  • Called preprocessor because a compiler is needed to change it to CSS code
  • Two syntax methods, SASS and SCSS, SCSS is used in this course

Nodejs installation and SASS setup

  1. Install nodejs from here on your computer.

  2. Confirm node if installed by typing node -v in the terminal. (I did this in the git bash terminal)

  3. Navigate into project folder using the terminal commands.

  4. To run the downloaded file / clone file.(After the above steps)

  npm run start
  1. Create package.json file by typing npm init in the terminal.

    • The prompt will prompt several questions for creating the file. In most cases the fields can be left blank or default values used.
    • If you download/clone project and want to install all dependencies simply run npm install in the terminal and all dependencies in the package.json file will be installed. This illustrates the main purpose of this file. Another scenario is working on one project on more than one computer.
    • When uploading a project to a repository don't upload the node_modules file as it is not necessary.
  2. Install SASS npm package by typing npm install node-sass --save-dev in the terminal.

    • The --save-dev saves the development dependencie in the package.json file.
    • Other packages such as jQuery should be saved as --save because they are non-development dependencies.
    • To uninstall a package (jQuery example) type npm uninstall jquery --save in the terminal.

Visitors Count

Loading

advanced-css-natours's People

Contributors

diamondabhishek avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.