Skip to content

fdorantesm/wordle-api

Repository files navigation

Description

A NestJS API to play wordle

Installation

$ yarn install

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

References

API https://wordle-api-v52u.onrender.com
Swagger https://wordle-api-v52u.onrender.com/docs

MongoDB Container

docker run -d -p 27017:27017 -e MONGO_INITDB_ROOT_USERNAME=root -e MONGO_INITDB_ROOT_PASSWORD=secret -v /Users/$USER/.mongodb5:/data --name mongodb mongo:5

Dictionary

mongo < src/words.js

Envpack

📦 Envpack an utility to pack and unpack dotenv files.

npx envpack -i localhost.zip