sinatra_sockets 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +32 -8
- data/lib/server_skeleton/Gemfile +1 -0
- data/lib/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 15ceae9b0ffb57cf0402226553bbf1d0cead1365
|
4
|
+
data.tar.gz: 1c6991d6bff221887618e35f20946e61b7320161
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8d9bfe79ce004845abb884862540554e14ed3713b2c11fb2594ab0600138aa048b6d9500a6726ae40b12ec19652a97c12aa8d2de3df084b2aca4d833c18ca38d
|
7
|
+
data.tar.gz: b5daeb4d873e9f103fbf0fb4f50173adec5e18040a6baf508fac4c86c5577aeb56107f5001ab9fa1f5ea1804924a9fcbd1e17b26e2c2f145859e4377569adcf0
|
data/README.md
CHANGED
@@ -1,15 +1,39 @@
|
|
1
|
-
|
1
|
+
```sh
|
2
|
+
$ gem install sinatra_sockets
|
3
|
+
$ sinatra_sockets generate .
|
4
|
+
```
|
2
5
|
|
3
|
-
|
6
|
+
It will print the generated directory tree:
|
4
7
|
|
5
|
-
|
8
|
+
```txt
|
9
|
+
Generated directory:
|
10
|
+
./server_skeleton
|
11
|
+
├── config.ru
|
12
|
+
├── Gemfile
|
13
|
+
├── Gemfile.lock
|
14
|
+
├── lib
|
15
|
+
│ ├── routes
|
16
|
+
│ │ └── ws.rb
|
17
|
+
│ └── routes.rb
|
18
|
+
├── README.md
|
19
|
+
└── server.rb
|
6
20
|
|
7
|
-
|
21
|
+
2 directories, 7 files
|
22
|
+
```
|
8
23
|
|
9
|
-
|
24
|
+
Start the server with thin:
|
10
25
|
|
11
|
-
|
26
|
+
```sh
|
27
|
+
cd server_skeleton
|
28
|
+
bundle exec thin start
|
29
|
+
# ... listening on localhost:3000
|
30
|
+
```
|
12
31
|
|
13
|
-
|
32
|
+
Earlier iterations of this had more files, mainly because of front-end stuff. However, I think a boiler is best
|
33
|
+
if it's kept minimal, so I removed all that and now it's API only. At the same time, though, I added a token-based
|
34
|
+
credential system as well as Github oAuth. Now it can tie in well with a front-end that's hosted on another server like
|
35
|
+
Webpack.
|
14
36
|
|
15
|
-
|
37
|
+
This can be seen in action in another boilerplate, [vue-webpack-coffee-slim-boiler](https://github.com/maxpleaner/vue-webpack-coffee-slim-boiler). sinatra_sockets is used as the server component there.
|
38
|
+
|
39
|
+
The source code includes comments.
|
data/lib/server_skeleton/Gemfile
CHANGED
data/lib/version.rb
CHANGED