https://github.com/felipegtx/cozy
:crystal_ball: Code playground (ThreeJs, TypeScript, Docker, Moca, Swagger, etc..)
https://github.com/felipegtx/cozy
chaijs docker google-firebase nodejs sinonjs swagger swagger-codegen swagger-ui threejs typescript vscode
Last synced: 3 months ago
JSON representation
:crystal_ball: Code playground (ThreeJs, TypeScript, Docker, Moca, Swagger, etc..)
- Host: GitHub
- URL: https://github.com/felipegtx/cozy
- Owner: felipegtx
- License: mit
- Created: 2018-04-04T09:08:54.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2025-12-16T07:15:23.000Z (5 months ago)
- Last Synced: 2025-12-19T19:15:19.799Z (5 months ago)
- Topics: chaijs, docker, google-firebase, nodejs, sinonjs, swagger, swagger-codegen, swagger-ui, threejs, typescript, vscode
- Language: JavaScript
- Homepage:
- Size: 771 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 21
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cozy
Feeling Cozy already?

## First things first
- `npm install`
## Running this project
You basically have two options.
### 1. Compile and start by hand
- `tsc -p tsconfig.json`
- `node src\index.js`
### 2. Compile and start using VSCode
- Hit F5 using the "Launch Program" profile.
## Runing the tests
Not that we have that many, but you also have two options
### 1. Run tests by hand
- If this is your very first time here, you'll need to run a quick: `tsc -p tsconfig.json`
- `mocha ./src/tests/getDesignByUserIdTests.js`
### 2. Use VSCode to run the tests
- Open the test file and hit F5 using the "Mocha Current File" profile.
## Docker
- Get your `awsKey` and `awsSecret` from the `~/.aws/credentials` file and use it to build the docker Image: `docker build --build-arg awsKey=yourkey --build-arg awsSecret=yourSecret -t cozyo .`
- Start the docker container: `docker run --name cozy -p 8081:8080 cozyo`
## Default login information
To authenticate in the app you can use the following credentials or create a new one:
- Email: `cozy@awesomeapp.com`
- Password: `cozyLife`
## What can I do with this?
You could either...
- View the test data at:
- http://localhost:8080/design/1234?budget=anything&room_type=anything&limit=10&q_api_key=12345
- Visit the awesome room at:
- http://localhost:8080/
- Play with the number of items rendered/returned using the `limit` parameter in the URL:
- http://localhost:8080/?limit=2
- http://localhost:8080/design/1234?budget=anything&room_type=anything&limit=2&q_api_key=12345
PS: Remember to change the port to `8081` when running from Docker.
## API Reference
- [Swagger](https://app.swaggerhub.com/apis/felipegtx9/procedural-design/0.0.2)
## Extra info
[](https://travis-ci.org/felipegtx/cozy) [](https://snyk.io/test/github/felipegtx/cozy)