A Node.js application simulating a digital pet, built to practice working with SQLite databases.
- 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.
- Node.js: JavaScript runtime
- better-sqlite3: SQLite database library
- Clone the repository:
git clone https://github.com/shxh08/digital-pet.git
cd digital-pet- Install dependencies:
npm install- Run a script to interact with your pet:
node pet.js add MyPet
node checkPets.js
node updatePets.js- Integrated SQLite databases in Node.js
- Designed and managed a simple database schema
- Created modular scripts for pet management and updates
- Personality Traits: Unique characteristics for each pet
- Random Events: Unexpected occurrences affecting pet stats
- User Interface: Web-based interface for easier interaction
This project is a work in progress and mainly serves as a learning tool for database integration and command-line scripting.