readme
This commit is contained in:
parent
95961c5a14
commit
edbbed2050
11
README.md
11
README.md
@ -23,6 +23,8 @@ $ npm install -g yarn
|
||||
### .env
|
||||
Create a file in the root called `.env` and copy the contents of `.env.example`
|
||||
|
||||
In your new `.env` file update the values for each key as you would like
|
||||
|
||||
### Dependencies
|
||||
To install the server dependencies run
|
||||
```bash
|
||||
@ -43,11 +45,18 @@ $ createdb neststarterappdevelopment # creates a postgres database
|
||||
|
||||
Run the migrations
|
||||
```bash
|
||||
yarn db:migrate
|
||||
$ yarn db:migrate
|
||||
```
|
||||
|
||||
Migrations need to be run again everytime a new migration is created
|
||||
|
||||
Run the seeds
|
||||
```bash
|
||||
$ yarn db:seed
|
||||
```
|
||||
|
||||
This should create roles and your admin level user in your database.
|
||||
|
||||
### SSL
|
||||
Create a ssl key and certificate and place them in the root directory
|
||||
|
||||
|
@ -12,7 +12,7 @@
|
||||
"db:migration:create": "cd server/database/migrations && typeorm migration:create -n ",
|
||||
"db:migrate": "yarn db:start && yarn typeorm migration:run",
|
||||
"db:migrate:undo": "yarn db:start && yarn typeorm migration:revert",
|
||||
"db:seed": "ts-node ./node_modules/typeorm-seeding/dist/cli.js seed -n cli_config.ts -r $(pwd)/server/database",
|
||||
"db:seed": "yarn db:start && ts-node ./node_modules/typeorm-seeding/dist/cli.js seed -n cli_config.ts -r $(pwd)/server/database",
|
||||
"prebuild": "rimraf dist",
|
||||
"build": "nest build && yarn client:build",
|
||||
"format": "prettier --write \"server/**/*.ts\" \"test/**/*.ts\"",
|
||||
@ -82,7 +82,8 @@
|
||||
"json",
|
||||
"ts"
|
||||
],
|
||||
"rootDir": "server",
|
||||
"moduleDirectories": ["node_modules", "./"],
|
||||
"rootDir": "./server",
|
||||
"testRegex": ".*\\.spec\\.ts$",
|
||||
"transform": {
|
||||
"^.+\\.(t|j)s$": "ts-jest"
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { Test, TestingModule } from '@nestjs/testing';
|
||||
import { AppController } from './app.controller';
|
||||
import { AppController } from 'server/app.controller';
|
||||
|
||||
describe('AppController', () => {
|
||||
let appController: AppController;
|
||||
@ -13,9 +13,9 @@ describe('AppController', () => {
|
||||
appController = app.get<AppController>(AppController);
|
||||
});
|
||||
|
||||
// describe('root', () => {
|
||||
// it('should return "Hello World!"', () => {
|
||||
// expect(appController.getHello()).toBe('Hello World!');
|
||||
// });
|
||||
// });
|
||||
describe('root', () => {
|
||||
it('should return "Hello World!"', () => {
|
||||
expect(appController.index()).toBe('Hello World!');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
@ -1,4 +1,4 @@
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"exclude": ["node_modules", "test", "dist", "**/*spec.ts"]
|
||||
"exclude": ["node_modules", "test", "dist", "**/*spec.ts", "client"]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user