Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rushi/server-name-generator
Name generator for servers
https://github.com/rushi/server-name-generator
Last synced: about 2 months ago
JSON representation
Name generator for servers
- Host: GitHub
- URL: https://github.com/rushi/server-name-generator
- Owner: rushi
- Created: 2022-07-17T12:00:56.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-05-02T16:26:01.000Z (over 1 year ago)
- Last Synced: 2023-07-01T08:20:35.079Z (over 1 year ago)
- Language: JavaScript
- Size: 455 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Server Name Generator
A server name generator for AWS Lambda that will generate names based on various topics like color, adjectives, star wars characters etc.
This is built on top of the good [unique-names-generator](https://www.npmjs.com/package/unique-names-generator) library. It extends that library along with a few additional dictionaries. See [src/custom-names.js](/src/custom-names.js) for the new list.
### Setup
- `nvm use` (Skip this if you don't use nvm/fnm) Requires node 18
- `npm ci`
- `npm start` to start the server in serverless offline mode`curl -i http://localhost:4000` to generate some names
### Deploy
`npm run deploy` Will deploy to AWS Lambda
### Usage
The following parameters are accepted:
- `length` The number of words to generate. Default: `2`
- `style` String style `lowerCase | upperCase | capital` Default: `lowerCase`
- `type` The dictionaries to use: `person | server` Default: `person`