fixed gitignore and readme

This commit is contained in:
2020-09-22 12:18:00 +02:00
parent 58e92a81d6
commit aa65720e6f
3 changed files with 32 additions and 7 deletions

3
.gitignore vendored
View File

@@ -5,4 +5,5 @@ build/
tmp/
temp/
dist/
log/
log/
ormconfig.json

View File

@@ -1,7 +1,7 @@
# Awesome Project Build with TypeORM
# My new Jokes-Webpage
This is version 2 of my Jokes-Webpage.
Steps to run this project:
1. Run `npm i` command
2. Setup database settings inside `ormconfig.json` file
3. Run `npm start` command
Major upgrades:
- Database enabled
- Dynamic backgrounds
- REST-API

24
ormconfig.template.json Normal file
View File

@@ -0,0 +1,24 @@
{
"type": "mysql",
"host": "",
"port": 0,
"username": "",
"password": "",
"database": "",
"synchronize": true,
"logging": false,
"entities": [
"dist/entity/**/*.js"
],
"migrations": [
"dist/migration/**/*.js"
],
"subscribers": [
"dist/subscriber/**/*.js"
],
"cli": {
"entitiesDir": "dist/entity",
"migrationsDir": "dist/migration",
"subscribersDir": "dist/subscriber"
}
}