Age Generator is a simple Node.js application that generates a random age and logs it to the console.
- Generates a random age between 1 and 100.
- Runs a lightweight Express server.
- Clone this repository or download the source code.
- Navigate to the project directory and install dependencies:
npm install age-generator
- Start the server:
node index.js
- The server will start on port
3600
. You can modify the port in theindex.js
file if needed. - To generate a random age, call the
getRandomAge
function in your code or modify the application to expose it via an API endpoint.const getRandomAge = require('age-generator'); console.log(getRandomAge)
-
Test: Run the following command to execute the test script (currently not implemented):
npm test
- Express: A minimal and flexible Node.js web application framework.
Adedeji Samuel
This project is licensed under the ISC License.