Giter Site home page Giter Site logo

domain-name-generator's Introduction

Hello World with Vanilla JS

Start coding in 30 seconds by opening this template in gitpod: Open in Gitpod

Manual Installation

  1. Remember to install the npm packages first:
$ npm install
  1. Build and Start coding!

Build the application for the first time...

$ npm run start

And start coding your Vanilla.js application, update the src/index.html, src/index.css or src/app.js depending on your needs.

FAQ

1) How do I run my code?

  • Type on the command line $ npm run start and type localhost on the browser.

2) Where do I write my code?

It depends on the language, but you have ./src/js/app.js, ./src/style/index.css and ./isrc/index.html respectively, you can add new .html as you please, just make sure to include import it on the index.js.

Note: remember that the JS workflow starts inside window.onload.

3) I don't see my changes.

Everytime you change any file inside the ./src folder the website public URL will automatically refresh the changes (it's a process called hot deploy) Remember also to refresh cleaning the cache (command+shift+r on mac, control+shift+r on pc & linux)

4) How do I include more images on my project?

Add them inside the ./src/assets/img folder and import them from any of your JS files. E.g: import "../assets/img/rigo-baby.jpg";

5) How do I include more JS files?

Just add the files into the JS folder and import the file/variables into your index.js. E.g: import myVar from "./file2.js"

6) How do I publish the website?

This boilerplate is 100% compatible with the free github pages hosting. Publish your website by running:

$ npm run deploy

Very easy and in just one step! Push to your master branch and use the free hosting that comes with GitHub pages, the project is ready to be published. Remember to choose to run the Github Page from your master branch.

domain-name-generator's People

Contributors

alesanchezr avatar dependabot[bot] avatar alexbrowng avatar nachovz avatar jferragut avatar alextugarev avatar hernanjkd avatar p3javier avatar tommygonzaleza avatar

Stargazers

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