Skip to content

Commit

Permalink
Readme & setup changes
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasHub committed Dec 26, 2024
1 parent 83f5e22 commit 6137573
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ See `deploy/deploy.sh`
### Seeding random data

Configure amounts in `backend/src/faker/faker-config.ts`
and the mongo creds in `backend/src/faker/index.ts`.
Mongo db credentials are read automatically from the env file.

```sh
cd backend
Expand Down
4 changes: 2 additions & 2 deletions backend/.env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ BUILD_VERSION=debug
# Mongo
MONGO_HOST=localhost
MONGO_PORT=27017
MONGO_USERNAME=
MONGO_PASSWORD=
MONGO_USERNAME=admin
MONGO_PASSWORD=pwd
MONGO_DB=confac

# App
Expand Down
8 changes: 4 additions & 4 deletions backend/src/faker/faker-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import { ProjectConfig } from './models';


const projectConfig: ProjectConfig = {
amount: 0, // amount of projects to insert
amount: 50, // amount of projects to insert

// endDate: new Date('2023-02-01'),
startDate: new Date('2021-01-01'),
startDate: new Date('2024-01-01'),

partnerProbability: 0.5,
noEndDateProbability: 0.2,
Expand All @@ -25,8 +25,8 @@ const invoicesConfig = {


export const config = {
clients: 0, // amount of clients to insert
consultants: 0, // amount of consultants to insert
clients: 50, // amount of clients to insert
consultants: 50, // amount of consultants to insert
projects: projectConfig,
invoices: invoicesConfig,
projectMonths: projectMonthsConfig,
Expand Down

0 comments on commit 6137573

Please sign in to comment.