Skip to content

roman-bytes/bytes

Repository files navigation

Byte Size URL Shortner

API

  1. The API for this repo was setup with Prisma and a Planetscale database. The API repo can be found here but .env variables are needed to run that locally.
  2. This API was generated from Prisma and uses the URL Shortner schema template and came with more APIs than I really needed.

Local Setup

Prerequisites

  1. Node 16
  2. Netlify Cli

Getting things running

  1. Clone down repo https://github.com/roman-bytes/bytes
  2. Navigate to repo in terminal and install the dependencies
yarn install
// or
npm run install
  1. Once everything is done installing run :
yarn dev
// or 
npm run dev

Running Tests

Test are setup with Jest and React Testing Library

  1. Running Test run
yarn run test
// or
npm run test