Skip to content

a1t0ghb/courses-oracle_one-logica_programacion_II-d250726

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Basic JavaScript Game: (en) 'Secret Number Game' / (sp) 'Juego Número Secreto'.

🌐 'https://a1t0ghb.github.io/courses-oracle_one-logica_programacion_II-d250726'

Final delivery of the 2nd course: 'Lógica de programación: explorar funciones y listas', from module (a.k.a. 'formación' in spanish) 'Principiante en Programación G9 - ONE', of Alura LATAM. Part of ORACLE Next Education (ONE) education program, in LATAM.

Note

This README:

  • Is mainly written in english (en), but it might have some sections in spanish (sp), since course content is in spanish.
  • Was created via web-browser GUI, not uploading a README.md locally via Git.

ℹ About.

The course covered topics such as:

  • Basics of web development: HTML files (e.g. as index.html) and tags, CSS files (e.g. style.css), and JavaScript files (e.g. app.js).
  • Basic HTML tags: <h1>, <p>.
  • Basics of JavaScript language:
    • Document Object Model (DOM) connectors; e.g. functions such as document.querySelector(...);.
    • HTML events linking to JavaScript functions; e.g. <button onclick="intentoDeUsuario();" class="container__boton">Intentar</button>.
    • Debugging logs; e.g. console.log(intentos);.
    • Variables definition; e.g. let numeroGenerado = Math.floor(Math.random()*((numeroMaximoPosible - numeroMinimoPosible) + 1) + numeroMinimoPosible);.
    • Functions definition; e.g. function limpiarCaja() {document.querySelector('#valorUsuario').value = '';}
    • If-else statements; e.g. if (...) {...} else {...}.
    • String templates; e.g. Acertaste el número en ${intentos} ${(intentos === 1) ? 'vez' : 'veces'}..
    • Use of arrays; e.g. listaNumerosSorteados.push(numeroGenerado);
    • Use if recursion in functions.

🥇 Course Certificate of Completion.

Available at 'https://app.aluracursos.com/certificate/9a47e8e1-2bce-42d0-b9b0-612483a878d0'.

  • Estimated workload: 8h.
  • Activities: 44.
  • Topics:
    1. 'Interactuando con HTML'.
    2. 'Funciones'.
    3. 'Reniciando el juego'.
    4. 'Listas'.
    5. 'Publicando el proyecto'.

🔗 Links to program resources.

PROGRAM STRUCTURE.

COURSE RESOURCES.

🐾 Steps for Publishing Project on GitHub, and Deploying Public URL on GitHub Pages.

Note

This section is only for reference, for documentation purposes in case of re-visiting procedure of publishing project.

Upload project files to new GitHub repository.

CREATE REPO. (SHORT FOR 'REPOSITORY').

  • Log-in into 'https://github.com/'.
  • Create new repo., via 'https://repo.new/'.
  • Define parameters of project creation; e.g.
    • Repo. name: 'courses-oracle_one-logica_programacion_II-d250726'.
    • Description: '2nd course project of JavaScript, focused on basics, from module 'Principiante en Programación', of ONE - ORACLE Next Education program.'.
    • Set visibility as 'Public'. ⚠ NOTE: this is REQUIRED, if you want to deploy and publish using GitHub Pages.

Note

After creating repo., it will create a URL to access it in the format https://github.com/<username>/<repo_name>; e.g. 'https://github.com/a1t0ghb/courses-oracle_one-logica_programacion_II-d250726'.

UPLOAD PROJECT FILES AND FOLDERS.

  • GOTO Project's Home > 'Add file' > 'Upload files' (also accessible via URL; e.g. 'https://github.com/a1t0ghb/courses-oracle_one-logica_programacion_II-d250726/upload'). You'll be prompted to create a COMMIT for uploading files.
  • Drag-and-drop ALL files and folders from your PC to the GitHub page.
    • Validate they were properly upload, and there is no missing folder and/or file.
  • Define parameters of commit; e.g.
    • Commit message: '1st commit: files upload using web-browser GUI.'
    • Commit description: [optional].
  • Commit changes, and wait for upload.

Deploy and Publish Public URL using GitHub Pages.

Important

'GitHub Pages' is a STATIC site hosting service, included in GitHub's free plan for PUBLIC repos.; it takes HTML, CSS and JavaScript files straight from a GitHub's repo., optionally runs files through a Jekyll build using GitHub Actions, and publishes a website. Ref. 'https://docs.github.com/en/pages/getting-started-with-github-pages/what-is-github-pages#about-github-pages'.

  • GOTO Project's Home > 'Settings' > 'Code an automation' > 'Pages'.
  • Set settings of 'Build and deployment':
    • Source: 'Deploy from a branch'.
    • Branch: [Select appropiate branch; usually 'main', '/root'.]
  • Click 'Save', and wait for some minutes for URL to be created.
  • You can validate the deployment status on Project's Home > Right-bar > 'Deployments'. Usually called 'github-pages'.

Note

After waiting some minutes for the deployment, refresh <F5> the page, and it will create a URL to access the project in the format https://<username>.github.io/<repo_name>; e.g. 'https://a1t0ghb.github.io/courses-oracle_one-logica_programacion_II-d250726/'.

Limitations and some notes on GitHub Pages.

🤝 Contributors.

Made with contrib.rocks.

📜 Authors.


a1t0ghb

About

Basic JavaScript game: (en) 'Secret number game' / (sp) 'Juego número secreto'.

Topics

Resources

Stars

Watchers

Forks