File tree Expand file tree Collapse file tree 3 files changed +129
-2
lines changed
Expand file tree Collapse file tree 3 files changed +129
-2
lines changed Original file line number Diff line number Diff line change 1+ # Logs
2+ logs
3+ * .log
4+ npm-debug.log *
5+ yarn-debug.log *
6+ yarn-error.log *
7+ lerna-debug.log *
8+
9+ # Diagnostic reports (https://nodejs.org/api/report.html)
10+ report. [0-9 ]* . [0-9 ]* . [0-9 ]* . [0-9 ]* .json
11+
12+ # Runtime data
13+ pids
14+ * .pid
15+ * .seed
16+ * .pid.lock
17+
18+ # Directory for instrumented libs generated by jscoverage/JSCover
19+ lib-cov
20+
21+ # Coverage directory used by tools like istanbul
22+ coverage
23+ * .lcov
24+
25+ # nyc test coverage
26+ .nyc_output
27+
28+ # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
29+ .grunt
30+
31+ # Bower dependency directory (https://bower.io/)
32+ bower_components
33+
34+ # node-waf configuration
35+ .lock-wscript
36+
37+ # Compiled binary addons (https://nodejs.org/api/addons.html)
38+ build /Release
39+
40+ # Dependency directories
41+ node_modules /
42+ jspm_packages /
43+
44+
45+ package-lock.json
46+
47+ # TypeScript v1 declaration files
48+ typings /
49+
50+ # TypeScript cache
51+ * .tsbuildinfo
52+
53+ # Optional npm cache directory
54+ .npm
55+
56+ # Optional eslint cache
57+ .eslintcache
58+
59+ # Microbundle cache
60+ .rpt2_cache /
61+ .rts2_cache_cjs /
62+ .rts2_cache_es /
63+ .rts2_cache_umd /
64+
65+ # Optional REPL history
66+ .node_repl_history
67+
68+ # Output of 'npm pack'
69+ * .tgz
70+
71+ # Yarn Integrity file
72+ .yarn-integrity
73+
74+ # dotenv environment variables file
75+ .env
76+ .env.test
77+
78+ # parcel-bundler cache (https://parceljs.org/)
79+ .cache
80+
81+ # Next.js build output
82+ .next
83+
84+ # Nuxt.js build / generate output
85+ .nuxt
86+ dist
87+
88+ # Gatsby files
89+ .cache /
90+ # Comment in the public line in if your project uses Gatsby and *not* Next.js
91+ # https://nextjs.org/blog/next-9-1#public-directory-support
92+ # public
93+
94+ # vuepress build output
95+ .vuepress /dist
96+
97+ # Serverless directories
98+ .serverless /
99+
100+ # FuseBox cache
101+ .fusebox /
102+
103+ # DynamoDB Local files
104+ .dynamodb /
105+
106+ # TernJS port file
107+ .tern-port
Original file line number Diff line number Diff line change 1- # docker_nodejs_app
2- deploy using docker
1+ # nodejsapi-redis-example
2+ Simple Node.js and Redis
3+ To start project
4+
5+ npm install
6+
7+ then
8+ to run project
9+
10+ nodemon server.js
11+
12+ Hit api "http://localhost:3000/api/getUsersData "
Original file line number Diff line number Diff line change 1+ const express = require ( 'express' )
2+
3+ // Create Express app
4+ const app = express ( )
5+
6+ // A sample route
7+ app . get ( '/' , ( req , res ) => res . send ( 'Hello World!' ) )
8+
9+ // Start the Express server
10+ app . listen ( 3000 , ( ) => console . log ( 'Server running on port 3000!' ) )
You can’t perform that action at this time.
0 commit comments