Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wolven531/promise-tests
Used to demonstrate and explain different promise and async concepts and libraries
https://github.com/wolven531/promise-tests
async async-await asynchronous javascript js nodejs promise promise-library promises react reactjs reactts ts typescript
Last synced: 26 days ago
JSON representation
Used to demonstrate and explain different promise and async concepts and libraries
- Host: GitHub
- URL: https://github.com/wolven531/promise-tests
- Owner: Wolven531
- Created: 2019-06-05T03:06:56.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-03T23:26:25.000Z (about 2 years ago)
- Last Synced: 2024-11-07T03:16:09.778Z (3 months ago)
- Topics: async, async-await, asynchronous, javascript, js, nodejs, promise, promise-library, promises, react, reactjs, reactts, ts, typescript
- Language: TypeScript
- Homepage: https://promise-tests.herokuapp.com/
- Size: 4.71 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 23
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# promise-tests (by Anthony Williams)
This project was created to demonstrate and explain the native Promise library in TypeScript
This README is also available as a website (using GitHub Pages) at [https://wolven531.github.io/promise-tests/](https://wolven531.github.io/promise-tests/)
## Live Demo
* Hosted w/ Heroku - [https://promise-tests.herokuapp.com/](https://promise-tests.herokuapp.com/)
* For more information on hosting Typescript or React apps on Heroku, see the [docs](https://devcenter.heroku.com/articles/buildpacks#using-a-third-party-buildpack)## Tested Using
* NodeJS
* 12.3.1 (May 22 2019)
* 12.4.0 (Jun 04 2019)
* 12.14.0 (Dec 16 2019)
* NPM
* 6.9.0
* 6.13.4## Setting Up
Run `npm i` from the project root directory to install the NodeJS dependencies (assuming you match any set of tested setups listed above)
## Running
Run `npm start` from the project root directory to start the app
## Examples
* Valid creation of resolved Promise in TypeScript
* Valid creation of rejected Promise in TypeScript
* Several invalid creation attempts in TypeScript w/ explanations
* Examples using the [Q](https://www.npmjs.com/package/q) Promise library