Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

πŸ“¦ Basic Node.js practice project - Learning modules, npm packages, and JavaScript fundamentals

Notifications You must be signed in to change notification settings

Andresflorezdev/practica-nodejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

3 Commits

Repository files navigation

πŸ“¦ Node.js Practice Project

A basic Node.js practice project demonstrating module usage and date manipulation with JavaScript.

πŸ“‹ Description

This is a learning project focused on Node.js fundamentals, including:

  • Creating and importing custom modules
  • Working with npm packages
  • Date manipulation
  • Basic Node.js project structure

πŸš€ Technologies

  • Node.js - JavaScript runtime environment
  • JavaScript - Programming language
  • npm - Package manager

πŸ“ Project Structure

practica-nodejs/
β”œβ”€β”€ main.js # Main entry point
β”œβ”€β”€ date.js # Date utility module
β”œβ”€β”€ package.json # Project configuration
β”œβ”€β”€ package-lock.json # Dependency lock file
└── .gitignore # Git ignore rules

πŸ”§ Installation

Prerequisites

  • Node.js installed (v12 or higher recommended)
  • npm (comes with Node.js)

Clone the repository

git clone https://github.com/Andresflorezdev/practica-nodejs. git
cd practica-nodejs

Install dependencies

npm install

πŸƒβ€β™‚οΈ Running the Project

npm start

Or directly with Node:

node main.js

πŸ“¦ Dependencies

  • isnumber (v1.0.0) - Package for number validation

πŸ“š What I Learned

This practice project covers:

  • βœ… Setting up a Node.js project from scratch
  • βœ… Understanding package.json configuration
  • βœ… Creating and exporting custom modules
  • βœ… Importing and using external npm packages
  • βœ… Working with JavaScript Date objects
  • βœ… Using require() for module imports
  • βœ… Running Node.js applications

🎯 Features

  • Custom date module for date operations
  • Number validation using external package
  • Modular code structure
  • npm scripts for easy execution

πŸ’‘ Key Concepts

Module System

// Exporting from date.js
module.exports = { /* your functions */ };
// Importing in main.js
const date = require('./date');

Package Management

  • Using npm install to add dependencies
  • Managing versions in package.json
  • Understanding node_modules folder

Running Scripts

  • Configured start script: npm start
  • Runs node main.js automatically

πŸ“ Scripts

npm start # Run the application
npm test # Run tests (not configured yet)

πŸ› οΈ Project Configuration

package.json details:

  • Name: primer_proyecto
  • Version: 1.0.0
  • License: MIT
  • Author: Andres Florez

πŸ”œ Future Improvements

  • Add more utility modules
  • Implement unit tests
  • Add error handling
  • Create additional examples
  • Add documentation for each module

πŸ“– Learning Resources

This project is ideal for:

  • Node.js beginners
  • Understanding module system
  • Learning npm basics
  • JavaScript practice

🀝 Contributing

This is a learning project, but suggestions are welcome!

  1. Fork the project
  2. Create your feature branch (git checkout -b feature/NewFeature)
  3. Commit your changes (git commit -m 'Add some NewFeature')
  4. Push to the branch (git push origin feature/NewFeature)
  5. Open a Pull Request

⭐ Star this repo if it helped you learn Node.js!

About

πŸ“¦ Basic Node.js practice project - Learning modules, npm packages, and JavaScript fundamentals

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /