Skip to content

Commit 571a6c2

Browse files
committed
initial commit
0 parents  commit 571a6c2

File tree

65 files changed

+15899
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+15899
-0
lines changed

.gitignore

Lines changed: 147 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,147 @@
1+
database.sqlite
2+
3+
# Created by https://www.toptal.com/developers/gitignore/api/node,visualstudiocode
4+
# Edit at https://www.toptal.com/developers/gitignore?templates=node,visualstudiocode
5+
6+
### Node ###
7+
# Logs
8+
logs
9+
*.log
10+
npm-debug.log*
11+
yarn-debug.log*
12+
yarn-error.log*
13+
lerna-debug.log*
14+
.pnpm-debug.log*
15+
16+
# Diagnostic reports (https://nodejs.org/api/report.html)
17+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
18+
19+
# Runtime data
20+
pids
21+
*.pid
22+
*.seed
23+
*.pid.lock
24+
25+
# Directory for instrumented libs generated by jscoverage/JSCover
26+
lib-cov
27+
28+
# Coverage directory used by tools like istanbul
29+
coverage
30+
*.lcov
31+
32+
# nyc test coverage
33+
.nyc_output
34+
35+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
36+
.grunt
37+
38+
# Bower dependency directory (https://bower.io/)
39+
bower_components
40+
41+
# node-waf configuration
42+
.lock-wscript
43+
44+
# Compiled binary addons (https://nodejs.org/api/addons.html)
45+
build/Release
46+
47+
# Dependency directories
48+
node_modules/
49+
jspm_packages/
50+
51+
# Snowpack dependency directory (https://snowpack.dev/)
52+
web_modules/
53+
54+
# TypeScript cache
55+
*.tsbuildinfo
56+
57+
# Optional npm cache directory
58+
.npm
59+
60+
# Optional eslint cache
61+
.eslintcache
62+
63+
# Microbundle cache
64+
.rpt2_cache/
65+
.rts2_cache_cjs/
66+
.rts2_cache_es/
67+
.rts2_cache_umd/
68+
69+
# Optional REPL history
70+
.node_repl_history
71+
72+
# Output of 'npm pack'
73+
*.tgz
74+
75+
# Yarn Integrity file
76+
.yarn-integrity
77+
78+
# dotenv environment variables file
79+
.env
80+
.env.test
81+
.env.production
82+
83+
# parcel-bundler cache (https://parceljs.org/)
84+
.cache
85+
.parcel-cache
86+
87+
# Next.js build output
88+
.next
89+
out
90+
91+
# Nuxt.js build / generate output
92+
.nuxt
93+
dist
94+
95+
# Gatsby files
96+
.cache/
97+
# Comment in the public line in if your project uses Gatsby and not Next.js
98+
# https://nextjs.org/blog/next-9-1#public-directory-support
99+
# public
100+
101+
# vuepress build output
102+
.vuepress/dist
103+
104+
# Serverless directories
105+
.serverless/
106+
107+
# FuseBox cache
108+
.fusebox/
109+
110+
# DynamoDB Local files
111+
.dynamodb/
112+
113+
# TernJS port file
114+
.tern-port
115+
116+
# Stores VSCode versions used for testing VSCode extensions
117+
.vscode-test
118+
119+
# yarn v2
120+
.yarn/cache
121+
.yarn/unplugged
122+
.yarn/build-state.yml
123+
.yarn/install-state.gz
124+
.pnp.*
125+
126+
### Node Patch ###
127+
# Serverless Webpack directories
128+
.webpack/
129+
130+
### VisualStudioCode ###
131+
.vscode/*
132+
!.vscode/settings.json
133+
!.vscode/tasks.json
134+
!.vscode/launch.json
135+
!.vscode/extensions.json
136+
*.code-workspace
137+
138+
# Local History for Visual Studio Code
139+
.history/
140+
141+
### VisualStudioCode Patch ###
142+
# Ignore all local history of files
143+
.history
144+
.ionide
145+
146+
# End of https://www.toptal.com/developers/gitignore/api/node,visualstudiocode
147+
Search...

server/.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.idea/
2+
.vscode/
3+
node_modules/
4+
build/
5+
tmp/
6+
temp/

server/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Awesome Project Build with TypeORM
2+
3+
Steps to run this project:
4+
5+
1. Run `npm i` command
6+
2. Setup database settings inside `ormconfig.json` file
7+
3. Run `npm start` command

server/jest.config.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
2+
module.exports = {
3+
preset: 'ts-jest',
4+
testEnvironment: 'node',
5+
moduleNameMapper: {
6+
'^@/(.*)$': '<rootDir>/src/$1',
7+
},
8+
};

server/ormconfig.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"type": "sqlite",
3+
"database": "database.sqlite",
4+
"synchronize": true,
5+
"logging": ["query", "error"],
6+
"entities": ["src/**/typeorm/**/*.ts"],
7+
"migrations": ["src/database/migration/**/*.ts"],
8+
"subscribers": ["src/subscriber/**/*.ts"],
9+
"cli": {
10+
"entitiesDir": "src/entity",
11+
"migrationsDir": "src/migration",
12+
"subscribersDir": "src/subscriber"
13+
}
14+
}

0 commit comments

Comments
 (0)