#Local setup

1 messages · Page 1 of 1 (latest)

tranquil apex
mystic dawn
tranquil apex
#

Oh I didn't find it. I think this should be better located, like in the first section of the sidebar and also linked in other readmes

mystic dawn
#

Yes, I agree

tranquil apex
#

Thank you for your help, once more!

#

Another question though @mystic dawn I have issues with eol because I'm on windows I guess, and I don't manage to get rid of all the errors I get (there are thousands of lines)

src\store\use-theme-controller.ts
  Line 1:45:   Delete `␍`  prettier/prettier
  Line 2:1:    Delete `␍`  prettier/prettier
  Line 3:39:   Delete `␍`  prettier/prettier
  Line 4:79:   Delete `␍`  prettier/prettier
  Line 5:1:    Delete `␍`  prettier/prettier
  Line 6:20:   Delete `␍`  prettier/prettier
  Line 7:35:   Delete `␍`  prettier/prettier
  Line 8:43:   Delete `␍`  prettier/prettier
  Line 9:47:   Delete `␍`  prettier/prettier
  Line 10:13:  Delete `␍`  prettier/prettier
  Line 11:44:  Delete `␍`  prettier/prettier
  Line 12:46:  Delete `␍`  prettier/prettier
  Line 13:6:   Delete `␍`  prettier/prettier
Search for the keywords to learn more about each error.

webpack compiled with 1 error
No issues found.
mystic dawn
#

Are you using VS Code?
Have you installed prettier extension?

tranquil apex
#

Yes

sleek quailBOT
#

@tranquil apex, you just advanced to level 2!

tranquil apex
#

Many of the files are detected as CRLF so I think that's responsible of the issue

tranquil apex
#

Okay so I did add

    'prettier/prettier': [
      'error',
      {
        endOfLine: 'auto',
      },
    ],
``` to the rules of the root `eslintrc.js` and I'm getting way less errors, good start
#

I think some subprojects do not extend the root eslinrc, I'm gonna check

#

Ok, I had to manually update eol for icons but everything's working now, thank you

tranquil apex
#

Hey @mystic dawn another question. I'm running pnpm start:e2e:api (alongside docker compose up in /environment/local) and looks like its stuck

[Nest] 2204  - 25/09/2022, 16:53:40     LOG [RouterExplorer] Mapped {/v1/invites/resend, POST} route +1ms
[Nest] 2204  - 25/09/2022, 16:53:40     LOG [RouterExplorer] Mapped {/v1/invites/bulk, POST} route +1ms
[Nest] 2204  - 25/09/2022, 16:53:40     LOG [RoutesResolver] FeedsController {/v1/feeds}: +8ms
[Nest] 2204  - 25/09/2022, 16:53:40     LOG [RouterExplorer] Mapped {/v1/feeds, POST} route +2ms
[Nest] 2204  - 25/09/2022, 16:53:40     LOG [RouterExplorer] Mapped {/v1/feeds, GET} route +0ms
[Nest] 2204  - 25/09/2022, 16:53:40     LOG [RouterExplorer] Mapped {/v1/feeds/:feedId, DELETE} route +1ms
[Nest] 2204  - 25/09/2022, 16:53:40     LOG [RoutesResolver] MessagesController {/v1/messages}: +1ms
[Nest] 2204  - 25/09/2022, 16:53:40     LOG [RouterExplorer] Mapped {/v1/messages, GET} route +1ms
[Nest] 2204  - 25/09/2022, 16:53:40     LOG [RouterExplorer] Mapped {/v1/messages/:messageId, DELETE} route +1ms
[Nest] 2204  - 25/09/2022, 16:53:40     LOG [RoutesResolver] TestingController {/v1/testing}: +1ms
[Nest] 2204  - 25/09/2022, 16:53:40     LOG [RouterExplorer] Mapped {/v1/testing/clear-db, POST} route +1ms
[Nest] 2204  - 25/09/2022, 16:53:40     LOG [RouterExplorer] Mapped {/v1/testing/session, POST} route +1ms
[Nest] 2204  - 25/09/2022, 16:53:40     LOG [RouterExplorer] Mapped {/v1/testing/seed, POST} route +1ms
[Nest] 2204  - 25/09/2022, 16:53:40     LOG [NestApplication] Nest application successfully started +11ms
[Nest] 2204  - 25/09/2022, 16:53:40     LOG Started application in NODE_ENV=test on port 1336

What should I do?

mystic dawn
#

you want to run tests for api?

tranquil apex
#

yes, to check if the tests I wrote are actually working

mystic dawn
#

is redis and mongodb running?

tranquil apex
#

yes using docker

#

it worked just now when I ran pnpm start and selected API + Web

mystic dawn
#

Now working? Are you able to test your changes?

tranquil apex
#

Sorry I meant that I tried with pnpm start > api + web and cd environment/local && docker compose up and it worked, so I'm trying pnpm start:e2e:api and cd environment/local && docker compose up but it still doesn't work

#

I removed all the containers/volumes to be sure there won't be any issue

mystic dawn
#

okay so you are running redis and mongodb in docker

tranquil apex
#

yes

mystic dawn
#

first start the docker

#

then run start command

tranquil apex
#

That's what I did

#

There are no errors, just stuck on started application in NODE_ENV=test on port 1336

mystic dawn
#

Lets do one thing, go inside api folder there is this script

#

run this script

tranquil apex
#

yes it worked

#

thx

#

so there is an issue in the main package.json, I'll fix it

woeful hamlet
#

@tranquil apex fyi, contributing documentation is currently in the works.

tranquil apex
#

I saw yes, that's great 👍

mystic dawn
#

Hi @tranquil apex
Is this issue resolved or you need more help?