Code Monkey home page Code Monkey logo

modern-frontend's Introduction

Modern Frontend

What is the Frontend?

I encourage you to check out the specifications on each part but don't worry if it feels overwhelming, because it is. Everything there is to know about each part is described in those specifications, but not in a very entertaining manner. It takes years to read and understand everything in those specifications. It's a good goal, but not required to get started.

To get started, we need a file for each of these parts. When we combine them, we get the full Frontend.

Basic Structure

  • public/index.html
  • public/css/styles.css
  • public/js/main.js

We place these files inside the public/ folder because we need a server to serve them. Browsers follow a struct policy called CORS to keep web browsing safe. Because of this, you will quickly run into CORS issues.

Thankfully, starting a static server is quite easy these days. You have a lot of choices depending on your system and favorite language. If you write a lot of JavaScript, you'll end up using Node.js.

$ npx http-server

http-server looks for a public/ directory by default, so it doesn't need any configuration. Once it starts, you should get a message that your page is being served at http://127.0.0.1:8080

modern-frontend's People

Contributors

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