LauraBeatris / typeorm-relations

practicing many to many relationships with typeorm, postgres and express

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TypeORM Relationships

Learn how to perform relationships in TypeORM

Run in Insomnia}

Author Languages Stars Forks Contributors

๐Ÿ“Œ Table of Contents

๐Ÿš€ Features

  • ๐Ÿ›  Store orders, products and customers
  • ๐Ÿ“”  Store students, classes and teachers

๐Ÿ“‹ Database Model

In order to understand the relationships, I've created the following database models:

๐Ÿ“™ Learning Sources

๐Ÿ‘ท Installation

You need to install Node.js and Yarn first, then in order to clone the project via HTTPS, run this command:

git clone https://github.com/LauraBeatris/typeorm-relations.git

SSH URLs provide access to a Git repository via SSH, a secure protocol. If you use a SSH key registered in your Github account, clone the project using this command:

git clone git@github.com:LauraBeatris/typeorm-relations.git

Install dependencies

yarn install

Or

npm install

Create your enviroment variables based on the examples of .env.example

cp .env.example .env

After copying the examples, make sure to fill the variables with new values.

Setup a database

Install Postgres to create a database or if you have Docker in your machine, fill the environment values related to database configurations and then run the following commands in order to create a Postgres container.

docker-compose up

๐Ÿƒ Getting Started

Run the transactions in order to configure the database schema

yarn typeorm migration:run

Run the following command in order to start the application in a development environment:

yarn dev:server

๐Ÿ“ฎ Faq

Question: What are the tecnologies used in this project?

Answer: The tecnologies used in this project are NodeJS + Express Framework to handle the server and TypeORM

๐Ÿ› Issues

Feel free to file a new issue with a respective title and description on the the TypeORM Relations repository. If you already found a solution to your problem, I would love to review your pull request! Have a look at our contribution guidelines to find out about the coding standards.

๐ŸŽ‰ Contributing

Check out the contributing page to see the best places to file issues, start discussions and begin contributing.

๐Ÿ“• License

Released in 2020. This project is under the MIT license.

Made with love by Laura Beatris ๐Ÿ’œ๐Ÿš€

About

practicing many to many relationships with typeorm, postgres and express


Languages

Language:TypeScript 90.4%Language:JavaScript 9.6%