Skip to content

henriquemod/short-me

Repository files navigation

Cypress Tests Unit Tests Build Backend Image Build Frontend Image Netlify Status Loading Tests

Logo

A minimalist url shortener
Report bug · Request feature

About

This project is a monorepo made with Lerna and, at this moment, is proof of concept, its purpose is testing, while its a quite simple application, a lot of tests is need in order to ensure its quality, also, not testing your software is just unprofessional.

Project Structure

shortme/
└── packages/
    ├── frontend/
    │   ├── file1
    │   ├── file2
    |   └── ...
    └── backend/
        ├── file3
        ├── file4
        └── ...

Frontend

To initialize service make sure youre at packages/frontend and

yarn
yarn dev

For unit tests:

yarn test

For e2e tests with Cypress: Requires either front and backend up

yarn cypress open

Backend

Fist make sure youre at packages/backend, then you can choose if you want to initialize with a container or not.

Normal:

yarn
yarn build
yarn dev

Container:

yarn
docker build -t shortme/backend .
docker-compose up -d

For unit tests:

yarn test