Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/alireza-mh/carousel-component-pure

Carousel Component with pure JS
https://github.com/alireza-mh/carousel-component-pure

Last synced: about 5 hours ago
JSON representation

Carousel Component with pure JS

Awesome Lists containing this project

README

        

# Carousel challenge
This is a carousel component based on `owl carousel`. This project tried to use an approach for writing reusable and readable component. Any contribution that helps to achieve these goals better are welcomed.
### Develop and Build

You can use the below command to run the project in development mode(port 8080):
```bash
npm start
```
For building:
```bash
npm run build
```
Also, there is a command that builds and serves the project(port 8000):
```bash
npm run build-serve
```

### Run Tests
please use follow command to run tests:

```bash
npm test
```
Also for E2E test you can run:
```bash
npm run cypress:open
```
### Notice
this project has been created with the boilerplate for vanilla js and ts and you can find it [here](https://github.com/alireza-mh/Vanilla-js-ts-boilerplate)

### Todo
You can add image link or links (separate via `,`)to populate images to the carousel.
please include `http or https`(some of the improvement that can be handled by code).
every time you add an image a new one will append to the carousel.