https://github.com/bahmutov/fastify-example
Example tiny server with a static folder and a JSON endpoint
https://github.com/bahmutov/fastify-example
cypress-example
Last synced: 9 months ago
JSON representation
Example tiny server with a static folder and a JSON endpoint
- Host: GitHub
- URL: https://github.com/bahmutov/fastify-example
- Owner: bahmutov
- Created: 2022-03-05T18:15:30.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-11-29T16:57:39.000Z (over 1 year ago)
- Last Synced: 2024-12-27T20:22:25.397Z (over 1 year ago)
- Topics: cypress-example
- Language: HTML
- Homepage: https://cypress.tips/courses
- Size: 1.57 MB
- Stars: 5
- Watchers: 2
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Fastify example
> Example tiny server with a static folder and a JSON endpoint

## Cypress course
This example application is used for the online course [Cypress Network Testing Exercises](https://cypress.tips/courses)
## Install and use
Please use Node version specified in the [.nvmrc](./.nvmrc) file in this repository. If you use [NVM](https://github.com/nvm-sh/nvm), you can simply execute `nvm use` in the current folder before installing and running the server.
```
$ npm install
$ npm start
```
Open the `localhost:4200`
## CORS
There is a separate small server for testing browser CORS
```
$ npm run start:cors
# check localhost:6006
```
## Small print
Author: Gleb Bahmutov <gleb.bahmutov@gmail.com> © 2022
- [@bahmutov](https://twitter.com/bahmutov)
- [glebbahmutov.com](https://glebbahmutov.com)
- [blog](https://glebbahmutov.com/blog)
- [videos](https://www.youtube.com/glebbahmutov)
- [presentations](https://slides.com/bahmutov)
- [cypress.tips](https://cypress.tips)
- [Cypress Tips & Tricks Newsletter](https://cypresstips.substack.com/)
- [my Cypress courses](https://cypress.tips/courses)
License: MIT - do anything with the code, but don't blame me if it does not work.
Support: if you find any problems with this module, email / tweet /
[open issue](https://github.com/bahmutov/fastify-example/issues) on Github