Skip to content

Commit 9d86ac3

Browse files
committed
First Commit
0 parents  commit 9d86ac3

File tree

19 files changed

+2503
-0
lines changed

19 files changed

+2503
-0
lines changed

.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/

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Blog-Typescript-API
2+
3+
Blog API built with typescript
4+
5+
6+
Steps to run this project:
7+
8+
1. Run `npm i` command
9+
2. Setup database settings inside `ormconfig.json` file
10+
3. Run `npm start` command

ormconfig.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"type": "mysql",
3+
"host": "localhost",
4+
"port": 3306,
5+
"username": "root",
6+
"password": "",
7+
"database": "blog",
8+
"synchronize": true,
9+
"logging": false,
10+
"entities": [
11+
"src/entity/**/*.ts"
12+
],
13+
"migrations": [
14+
"src/migration/**/*.ts"
15+
],
16+
"subscribers": [
17+
"src/subscriber/**/*.ts"
18+
],
19+
"cli": {
20+
"entitiesDir": "src/entity",
21+
"migrationsDir": "src/migration",
22+
"subscribersDir": "src/subscriber"
23+
}
24+
}

0 commit comments

Comments
 (0)