Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: document installation #29

Merged
merged 1 commit into from
Oct 5, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 46 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,51 @@
# MegaHertz backend

This node project is the backend for MegaHertz.

This project is the backend for MegaHertz, a car rental software.
This project is the support project for software architecture courses from theTribe.

## License

The project's license is Aladdin Free Public License and is available [here](LICENSE.md).
The project is available under the Aladdin Free Public License which is available [here](LICENSE.md).

## Known issues

### Jest performances

As discussed [here](https://github.com/kulshekhar/ts-jest/issues/259), Jest tests are slow to start with TypeScript.
A workaround to "isolate the modules" reduces the launch time but does not validate typing anymore.
Since type validation is essential, especially in TDD, the mentioned workaround has not been implemented, hence slow
tests at launch.

## Installation and setup for the course

### Requirements

- nvm
- git
- docker
- docker-compose

### Instructions

If you haven't already, please fork and sync this project.
You can learn how to fork and sync [here](https://docs.github.com/en/get-started/quickstart/fork-a-repo).

Once you have cloned your fork, please cd to the project's root and run the commands below.

```shell
# If node v20.x is not installed
nvm install v20
nvm use v20
yarn install
```

To launch integration and e2e tests, you will need a running container of postgres:

```shell
docker-compose up -d
```

### Troubleshoot

Please reach out to harold.cohen@thetribe.io if you encounter any troubleshoot during installation.