Skip to content

shxh08/digital-pet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🐾 Digital Pet

A Node.js application simulating a digital pet, built to practice working with SQLite databases.

✨ Features

  • Pet Management: Add and manage pets stored in a SQLite database.
  • Stat Tracking: Monitor pet attributes like hunger and happiness.
  • Time-Based Updates: Use scripts to simulate the passage of time and update pet stats.

🛠️ Tech Stack

  • Node.js: JavaScript runtime
  • better-sqlite3: SQLite database library

🚀 Getting Started

  1. Clone the repository:
git clone https://github.com/shxh08/digital-pet.git
cd digital-pet
  1. Install dependencies:
npm install
  1. Run a script to interact with your pet:
node pet.js add MyPet
node checkPets.js
node updatePets.js

📚 What I Learned

  • Integrated SQLite databases in Node.js
  • Designed and managed a simple database schema
  • Created modular scripts for pet management and updates

🔮 Future Enhancements

  • Personality Traits: Unique characteristics for each pet
  • Random Events: Unexpected occurrences affecting pet stats
  • User Interface: Web-based interface for easier interaction

📌 Note

This project is a work in progress and mainly serves as a learning tool for database integration and command-line scripting.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors