https://github.com/albinotonnina/vanilla-js-spa
Single page applications for a test, no libraries
https://github.com/albinotonnina/vanilla-js-spa
api spa vanilla-javascript
Last synced: about 1 year ago
JSON representation
Single page applications for a test, no libraries
- Host: GitHub
- URL: https://github.com/albinotonnina/vanilla-js-spa
- Owner: albinotonnina
- Created: 2017-02-26T22:54:03.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-01-12T17:56:30.000Z (over 8 years ago)
- Last Synced: 2025-03-24T19:21:42.458Z (about 1 year ago)
- Topics: api, spa, vanilla-javascript
- Language: JavaScript
- Homepage:
- Size: 134 KB
- Stars: 9
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Instructions
Install
`npm install`
Build and launch
`npm start`
Test
`npm test`
Development
`npm run dev`
(just nodemon watching for changes and relaunching npm start)
## Entry point
`http://localhost:9000/search`
## Notes
Tested in IE 10+, Chrome, Firefox, Safari
## SPA
- No frameworks
- No libraries
- No template systems.
- Express for the server
- ES6
- No classes, I wanted to play this with plain objects and factories
- Polyfills from polyfill.io cdn
- Webpack
## Testing & linting
- Mocha with Babel
- Chai Expect
- Eslint
## Styling
Principles and rules from [Bandit](http://bandit-css.herokuapp.com) methodology.
- Encapsulate module styles using a unique selector prefix
- Flat hierarchy of class based selectors
- Use variables for everything
- No key selectors outside the module they belong to
- Don’t nest selectors when it’s not necessary
- Avoid type selectors