diff --git a/api/README.md b/api/README.md index fe326a91eb891876c79d4c20e264ce79272c5e9f..6767c3d2fadf575eaf1242f1ea69b338bcfff931 100644 --- a/api/README.md +++ b/api/README.md @@ -1,31 +1,22 @@ -<div align="center"> +<div> <img width="512" src="https://raw.githubusercontent.com/grdnmsz/prisma-docker/master/banner.png" alt="prisma-docker"> </div> -## Setting up a back-end environment for Prisma and Docker - -<p align="center"> -<img src="https://img.shields.io/github/license/grdnmsz/prisma-docker" alt="license-badge"> -<img src="https://img.shields.io/github/repo-size/grdnmsz/prisma-docker" alt="repo-size-badge"> -</p> - -Template project to bootstrap a back-end application with nodejs (express), postgresql and prisma within a docker container. - -This code is a follow up to my article available here : https://gordonmes.dev/docker-prisma +## Api for PB138 project "Ovládanie domácnosti" +This api uses template project for bootstraping a back-end application with nodejs (express), postgresql and prisma within a docker container. +Template source repository: https://github.com/grdnmsz/prisma-docker.git ## Getting started -- Clone this repository: -``` -git clone https://github.com/grdnmsz/prisma-docker.git -``` - - Build, fetch and run docker containers ``` docker-compose up -d ``` -## License -This project is under 0BSD, feel free to use and share it! +- Seed mock-up database +``` +npx prisma db push +npx prisma db seed +``` ## Tech & framework used - [Docker](https://www.docker.com/), an open platform for developing, shipping, and running applications