Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sujilnt/learningofflinefeauture
https://github.com/sujilnt/learningofflinefeauture
Last synced: 2 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/sujilnt/learningofflinefeauture
- Owner: sujilnt
- Created: 2019-07-17T22:32:03.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-10T22:54:48.000Z (about 2 years ago)
- Last Synced: 2024-12-06T22:08:10.104Z (about 1 month ago)
- Language: JavaScript
- Size: 50.3 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Wittr
This is a silly little demo app for an offline-first course.
You could run the app either using machine dependnecies, or using docker
## Running using local machine
### Installing
Dependencies:
* [Node.js](https://nodejs.org/en/) v0.12.7 or above
Then check out the project and run:
```sh
npm install
```### Running
```sh
npm run serve
```### Using the app
You should now have the app server at [localhost:8888](http://localhost:8888) and the config server at [localhost:8889](http://localhost:8889).
You can also configure the ports:
```sh
npm run serve -- --server-port=8000 --config-server-port=8001
```## Running using docker
```sh
docker-compose up
```Here also you should have the app server at [localhost:8888](http://localhost:8888) and the config server at [localhost:8889](http://localhost:8889).
You can configure the ports by changing them in `docker-compose.yml` before starting:
```yml
ports:
# :
- 8000:8888
- 8001:8889
```## Troubleshooting
* Errors while executing `npm run serve`.
* The first thing to try is to upgrade to latest version of node.
* If latest version also produces errors, try installing v4.5.0.
* An easy fix for that would be [to use `nvm`](http://stackoverflow.com/a/7718438/1585523).
* If you get any node-sass errors, try running `npm rebuild node-sass --force` or the remove `node_modules` folder and run `npm install` again