/KB

Primary LanguageTypeScript

Hello there, Hope you're having a nice day! :)

At your root folder, you can see a .env file, while you might not expect that I've committed the .env file to make it easier to run the project with one command instead or usually using the .env.sample.

So, in order to do so. You'll need to have docker installed on your machine.

In case you have any of these ports used (5123, 6060, 8080, 27017) please try to free it before running next command

After that just simply run docker-compose up

After this is done, you'll have 3 docker images running on your machine

  1. mongodb -> the db we use
    • port 6060 is exposed for you to hook your local mongoDB compass if you want to have a look on the DB records
  2. server -> node + express server we're using
    • working on port 5123
  3. client -> client side of the application
    • you can use that on port 8080
    • or simply click here client

To Run tests

Server

  1. cd to server folder
  2. run yarn test

Client (You might face issues on Windows, but it should work on Mac & Linux)

  1. cd to client folder
  2. run yarn test