Skip to content

Added models according to DB diagram and wrote some unit tests.#18

Open
TylerDelRosario wants to merge 6 commits intoaguywithcode:mainfrom
TylerDelRosario:main
Open

Added models according to DB diagram and wrote some unit tests.#18
TylerDelRosario wants to merge 6 commits intoaguywithcode:mainfrom
TylerDelRosario:main

Conversation

@TylerDelRosario
Copy link
Copy Markdown
Collaborator

@TylerDelRosario TylerDelRosario commented Mar 29, 2024

Models are designed according to: https://dbdiagram.io/d/65f92868ae072629ce5c2e77
Added helper module - RouteID to possibly generate short and url-friendly IDs that will always be unique.
Wrote unit tests for RouteID and for testing connection to the database.

To run, put your complete database url in the .env file like DB_URL=<db-url-here> and run npm test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants