Skip to content

Commit 20c60a3

Browse files
committed
generate feathers app
0 parents  commit 20c60a3

27 files changed

+9941
-0
lines changed

.editorconfig

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
indent_style = space
6+
indent_size = 2
7+
end_of_line = lf
8+
charset = utf-8
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true
11+
12+
[*.md]
13+
trim_trailing_whitespace = false

.eslintrc.json

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"env": {
3+
"es6": true,
4+
"node": true,
5+
"mocha": true
6+
},
7+
"parserOptions": {
8+
"ecmaVersion": 2018
9+
},
10+
"extends": [
11+
"eslint:recommended"
12+
],
13+
"rules": {
14+
"indent": [
15+
"error",
16+
2
17+
],
18+
"linebreak-style": [
19+
"error",
20+
"unix"
21+
],
22+
"quotes": [
23+
"error",
24+
"double"
25+
],
26+
"semi": [
27+
"error",
28+
"always"
29+
]
30+
}
31+
}

.gitignore

+115
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
# env
2+
.env
3+
4+
5+
# Logs
6+
logs
7+
*.log
8+
9+
# Runtime data
10+
pids
11+
*.pid
12+
*.seed
13+
14+
# Directory for instrumented libs generated by jscoverage/JSCover
15+
lib-cov
16+
17+
# Coverage directory used by tools like istanbul
18+
coverage
19+
20+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
21+
.grunt
22+
23+
# Compiled binary addons (http://nodejs.org/api/addons.html)
24+
build/Release
25+
26+
# Dependency directory
27+
# Commenting this out is preferred by some people, see
28+
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git-
29+
node_modules
30+
31+
# Users Environment Variables
32+
.lock-wscript
33+
34+
# IDEs and editors (shamelessly copied from @angular/cli's .gitignore)
35+
/.idea
36+
.project
37+
.classpath
38+
.c9/
39+
*.launch
40+
.settings/
41+
*.sublime-workspace
42+
43+
# IDE - VSCode
44+
.vscode/*
45+
!.vscode/tasks.json
46+
!.vscode/launch.json
47+
!.vscode/extensions.json
48+
49+
### Linux ###
50+
*~
51+
52+
# temporary files which can be created if a process still has a handle open of a deleted file
53+
.fuse_hidden*
54+
55+
# KDE directory preferences
56+
.directory
57+
58+
# Linux trash folder which might appear on any partition or disk
59+
.Trash-*
60+
61+
# .nfs files are created when an open file is removed but is still being accessed
62+
.nfs*
63+
64+
### OSX ###
65+
*.DS_Store
66+
.AppleDouble
67+
.LSOverride
68+
69+
# Icon must end with two \r
70+
Icon
71+
72+
73+
# Thumbnails
74+
._*
75+
76+
# Files that might appear in the root of a volume
77+
.DocumentRevisions-V100
78+
.fseventsd
79+
.Spotlight-V100
80+
.TemporaryItems
81+
.Trashes
82+
.VolumeIcon.icns
83+
.com.apple.timemachine.donotpresent
84+
85+
# Directories potentially created on remote AFP share
86+
.AppleDB
87+
.AppleDesktop
88+
Network Trash Folder
89+
Temporary Items
90+
.apdisk
91+
92+
### Windows ###
93+
# Windows thumbnail cache files
94+
Thumbs.db
95+
ehthumbs.db
96+
ehthumbs_vista.db
97+
98+
# Folder config file
99+
Desktop.ini
100+
101+
# Recycle Bin used on file shares
102+
$RECYCLE.BIN/
103+
104+
# Windows Installer files
105+
*.cab
106+
*.msi
107+
*.msm
108+
*.msp
109+
110+
# Windows shortcuts
111+
*.lnk
112+
113+
# Others
114+
lib/
115+
data/

README.md

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# sintax-backend
2+
3+
>
4+
5+
## About
6+
7+
This project uses [Feathers](http://feathersjs.com). An open source web framework for building modern real-time applications.
8+
9+
## Getting Started
10+
11+
Getting up and running is as easy as 1, 2, 3.
12+
13+
1. Make sure you have [NodeJS](https://nodejs.org/) and [npm](https://www.npmjs.com/) installed.
14+
2. Install your dependencies
15+
16+
```
17+
cd path/to/sintax-backend
18+
npm install
19+
```
20+
21+
3. Start your app
22+
23+
```
24+
npm start
25+
```
26+
27+
## Testing
28+
29+
Simply run `npm test` and all your tests in the `test/` directory will be run.
30+
31+
## Scaffolding
32+
33+
Feathers has a powerful command line interface. Here are a few things it can do:
34+
35+
```
36+
$ npm install -g @feathersjs/cli # Install Feathers CLI
37+
38+
$ feathers generate service # Generate a new Service
39+
$ feathers generate hook # Generate a new Hook
40+
$ feathers help # Show all commands
41+
```
42+
43+
## Help
44+
45+
For more information on all the things you can do with Feathers visit [docs.feathersjs.com](http://docs.feathersjs.com).

config/default.json

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"host": "localhost",
3+
"port": 3030,
4+
"public": "../public/",
5+
"paginate": {
6+
"default": 10,
7+
"max": 50
8+
},
9+
"authentication": {
10+
"entity": "user",
11+
"service": "users",
12+
"secret": "vkjLpLW0ZyVcICR4SbTwIheVnmg=",
13+
"authStrategies": [
14+
"jwt",
15+
"local"
16+
],
17+
"jwtOptions": {
18+
"header": {
19+
"typ": "access"
20+
},
21+
"audience": "https://yourdomain.com",
22+
"issuer": "feathers",
23+
"algorithm": "HS256",
24+
"expiresIn": "1d"
25+
},
26+
"local": {
27+
"usernameField": "email",
28+
"passwordField": "password"
29+
}
30+
},
31+
"mongodb": "mongodb://localhost:27017/sintax_backend"
32+
}

config/production.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"host": "sintax-backend-app.feathersjs.com",
3+
"port": "PORT",
4+
"mongodb" : "MONGO_URL"
5+
6+
}

config/test.json

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

0 commit comments

Comments
 (0)