danielbom / database-schemas-explorer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Database Schemas Explorer

This project was created to explore the database schemas. To get started was made a github collector to create initial data. The intention is to create a web interface to explore the database schemas where the users can search, discuss and contribute to the project.

OBS: This project was created to study and for fun. This code was builded with libraries that I never used before. If you like and want to contribute, please do it. I will be very happy to receive your help.

Get Started

Execute the CLI to collect data from github.

# Run cli to collect data from github
yarn cli --help

CLI Help

Start the server to get access to collected data into web browser.

Server created with Fastify and Pug. The prisma hightlight is made from scratch with tokenizr. The colors was inspired by the Atom One Dark theme. The current database was created with Prisma and SQLite engine. The database in this repository has a sample of 1000 repositories.

# Run server
yarn start

# Run server in dev mode
yarn dev

List of files

List files

File content

File content

Commands

yarn init -y

# Install packages
yarn add tsx -D
yarn add @types/node -D
yarn add axios
yarn add lodash
yarn add @types/lodash -D
yarn add prisma -D
yarn add @prisma/client
yarn add commander
yarn add fastify
yarn add pug
yarn add @types/pug -D
yarn add tokenizr

# Create a new Prisma project.
npx prisma init --datasource-provider sqlite
# Create the initial migration.
npx prisma migrate dev --name init
# Turn your database schema into a Prisma schema.
npx prisma db pull
# Generate the Prisma Client. You can then start querying your database.
npx prisma generate

References

About


Languages

Language:TypeScript 87.6%Language:Pug 9.0%Language:CSS 3.3%