Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexandr-g/polls
React SPA based on hooks that lets users vote through the Polls API
https://github.com/alexandr-g/polls
hooks react styled-components
Last synced: about 1 month ago
JSON representation
React SPA based on hooks that lets users vote through the Polls API
- Host: GitHub
- URL: https://github.com/alexandr-g/polls
- Owner: alexandr-g
- Created: 2019-06-22T08:31:54.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-10T19:58:47.000Z (almost 2 years ago)
- Last Synced: 2023-02-28T11:26:51.684Z (over 1 year ago)
- Topics: hooks, react, styled-components
- Language: JavaScript
- Homepage: https://pedantic-poitras-60ab7e.netlify.com
- Size: 2.63 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 21
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Polls
A single page application that lets users vote through the Polls API
**Demo**: https://pedantic-poitras-60ab7e.netlify.com
## Usage
**To run the project locally clone the repository:**
```bash
$ git clone https://github.com/alexandr-g/polls.git
```**Install project dependencies:**
```bash
$ yarn
```**Build and start project in development mode:**
```bash
$ yarn start
```This opens `http://localhost:8080` in your default browser that will serve webpack output with a running app
**Build production js bundle:**
```bash
$ yarn build
```#### Testing
Run tests using Jest:
```bash
$ yarn test
```## Project Structure
├── src - All the source code
│ ├── components - React UI components
│ ├── api - API
│ └── index.js - JS entry point
│ ├── index.html - HTML entry point
├── .babelrc - Babel config to transpile ES6
├── .gitignore - Ignore files for source control (node_modules, test coverage)
├── package.json - List of dependencies, npm scripts, author etc.
├── README.md - Project Overview and instruction how to run and test
├── webpack.config.js - Custom webpack config
├── yarn.lock - Locked project dependencies