Giter Site home page Giter Site logo

covuworie / angular-crash-course Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 152 KB

Angular Crash Course

License: MIT License

JavaScript 10.99% TypeScript 78.79% HTML 5.89% SCSS 4.34%
angular nodejs css html sass typescript html5 css3 angular-router angular-components angular-services angular-http fronte frontend-framework frontend-development jsonplaceholder-api tutorial video

angular-crash-course's Introduction

Angular Crash Course

The code in this repository is based on Traversy Media's Angular Crash Course video tutorial. The aim of the tutorial is to provide an introduction to the Angular platform by building a simple todo (task list) application. Note that I use typescript here instead of javascript and this leads to some interesting type definitions and subtle differences between the code in the video and my code. Most of these differences are necessary in order to appease the typescript compiler which is pretty darn strict and found a lot of Brad's bugs before he found them in the video! Also I configur Angluar to use Sass instead of regular CSS because I prefer its feature set. This is done by using the --style=scss option when using the ng new command in the Angular CLI to create the project.

Prerequisites

  1. Install nodejs.
  2. Install the Angular CLI.
  3. Install Visual Studio Code (optional).

Running the code

  1. You will be prompted to install the the recommended extensions if you open up the code folder in Visual Studio Code. There is only one extension - Prettier - which is a code formatter. The recommended extensions can be found in the extensions.json file in the .vscode directory should you wish to edit these. Likewise in the same directory you can find the settings.json file should you wish to edit the recommended settings. If you choose to not use Visual Studio code, you can always use step 4 instead to run prettier.
  2. Run npm install from the project folder to install the dependencies listed in the package.json file.
  3. Run npm start from the project folder to launch the Angular development server. This command will launch the application in your default web browser and will watch for and compile changes to source files.
  4. Run npm run prettier from the project folder whenever you make changes and wish to format all files in the project.

Deployment

If you wish to deploy the website then run the command npm run build from the project folder. This will create a dist directory with the application build artifacts. You can then deploy this folder on any web server that you want.

angular-crash-course's People

Contributors

covuworie avatar

Watchers

 avatar  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.