Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 11 hours 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 (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-09-13T09:01:23.000Z (12 days ago)
- Last Synced: 2024-09-21T01:30:53.303Z (4 days ago)
- Topics: chaijs, docker, google-firebase, nodejs, sinonjs, swagger, swagger-codegen, swagger-ui, threejs, typescript, vscode
- Language: JavaScript
- Homepage:
- Size: 685 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cozy
Feeling Cozy already?
![cozy](https://user-images.githubusercontent.com/1022404/42698804-597d5e7e-8695-11e8-838c-4677013becfa.gif)
## 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: `[email protected]`
- 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=12345PS: 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
[![Build Status](https://travis-ci.org/felipegtx/cozy.svg?branch=master)](https://travis-ci.org/felipegtx/cozy) [![Known Vulnerabilities](https://snyk.io/test/github/felipegtx/cozy/badge.svg)](https://snyk.io/test/github/felipegtx/cozy)