Git Product home page Git Product logo

web.dev's Introduction

web.dev

Build Status

web.dev is the ultimate resource for developers of all backgrounds to learn, create, and solve on the web. It's meant to not only educate developers, but help them apply what they've learned to any site they work on, be it personal or business.

Note: this repo contains the written content for web.dev. The client-side JS and server are not yet open source.

Authoring content

Our wiki provides docs on authoring guides and codelabs.

Get started

Clone the repo.

git clone https://github.com/GoogleChrome/web.dev.git

Install dependencies.

npm ci

โš ๏ธ Important: We're currently in the process of open sourcing our CSS. Unfortunately the above command will only work for folks who are part of our team and have access to the styles submodule. We plan to resolve this in the second half of May. Thank you for your patience! ๐Ÿ™‡โ€โ™‚๏ธ

Start a local server to preview the site.

Changes to assets will rebuild the site. Refresh to see changes.

npm run dev

Next, open http://localhost:8080/ to see the site locally. The preview server allows you to see how the content will look on the production site, but it's not a true staging server. For example, features like search and JS components may not work or be entirely broken on the local preview.

Fetch latest styles (optional)

You won't need to do this if this is your first time installing the repo because styles will be fetched in the postinstall phase. But if you'd ever like to grab the latest styles you can run this command:

npm run styles

Staging

Stage the site to App Engine. This requires you have the gcloud command installed on your system.

npm run stage

โ˜๏ธ You'll need to be a member of the App Engine project to run this command.

Preview the site at https://web-dev-staging.appspot.com

Tip: ๐Ÿ‘ฉโ€๐Ÿš€

If you'd like to stage the site but don't want to replace what's already on the current staging site, you can manually run:

npm run build
gcloud app deploy --no-promote

This will generate a unique URL for your staged content.

Debugging

The easiest way to debug the site is to add a debugger statement to .eleventy.js, then run npm run debug, and go to chrome://inspect to attach to the running process.

Found a bug?

You can file an issue in our issue tracker and a team member should reply shortly.

Want to help?

Take a look in the issue tracker for any bugs with a content label.

web.dev's People

Contributors

addyosmani avatar avgp avatar dalmaer avatar dangdennis avatar demianrenzulli avatar devnook avatar ebidel avatar egsweeny avatar equinusocio avatar garimamimani avatar hiwelo avatar housseindjirdeh avatar jeffposnick avatar khempenius avatar kjue25 avatar kosamari avatar lizzisassman avatar mdiblasio avatar meggin avatar meggynw avatar mihajlija avatar petele avatar robdodson avatar rowan-m avatar rviscomi avatar samdutton avatar samthor avatar timvdlippe avatar tomayac avatar uskay 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.