Skip to content

Commit 273eb4d

Browse files
author
Franciszek Stodulski
authored
Update README.md (#17)
* Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md
1 parent a8e31a6 commit 273eb4d

File tree

1 file changed

+105
-25
lines changed

1 file changed

+105
-25
lines changed

README.md

+105-25
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,120 @@
1-
# Frontend New Recruitment Task - API
2-
Built with Prisma, MySQL, GraphQL/REST
1+
[![Contributors][contributors-shield]][contributors-url]
2+
[![Forks][forks-shield]][forks-url]
3+
[![Stargazers][stars-shield]][stars-url]
4+
[![Issues][issues-shield]][issues-url]
5+
[![MIT License][license-shield]][license-url]
36

4-
# First run
57

6-
## Run in terminal
7-
* `docker-compose up -d`
88

9-
* `npm run generate`
9+
<!-- PROJECT LOGO -->
10+
<br />
11+
<p align="center">
12+
<a href="https://github.com/netguru/fe-recru-api">
13+
<img src="https://ui-ex.com/images/deadpool-svg-head-2.png" alt="Logo" width="80" height="80">
14+
</a>
1015

11-
* `npm run deploy`
16+
<h3 align="center">Heroes API</h3>
1217

13-
* `npm run seed`
18+
<p align="center">
19+
A backend appliaction built with Prisma, Docker and Node.js
20+
<br />
21+
<a href="https://github.com/netguru/fe-recru-api/wiki"><strong>Explore the docs »</strong></a>
22+
<br />
23+
<br />
24+
<a href="https://github.com/netguru/fe-recru-api/issues">Report Bug</a>
25+
·
26+
<a href="https://github.com/netguru/fe-recru-api/issues">Request Feature</a>
27+
</p>
28+
</p>
1429

1530

16-
## Run in terminal
17-
* For REST `npm run start:rest`
18-
* For GraphQL `npm run start:graphql`
1931

32+
<!-- TABLE OF CONTENTS -->
33+
## Table of Contents
2034

21-
## Run as Developer
22-
* For REST `npm run dev:rest`
23-
* For GraphQL `npm run dev:graphql`
35+
* [Built With](#built-with)
36+
* [Getting Started](#getting-started)
37+
* [Initial setup](#initial-setup)
38+
* [Installation](#installation)
39+
* [Running the project](#running-the-project)
40+
* [Authors](#authors)
41+
* [License](#license)
2442

25-
## Deploy new schema (after modifying `datamodel.prisma`)
26-
`prisma deploy`
2743

28-
## AFTER MODIFYING `prisma.yml` RUN `npm run generate`!
2944

30-
## GRAPHQL ONLY
31-
### Generate Types for schemats
32-
`npm run deploy`
45+
## Built With
46+
This application was built with:
47+
* [Prisma](https://www.prisma.io/)
48+
* [Node.js](https://node.js.org/)
49+
* [Docker](https://www.docker.com/)
3350

3451

35-
## Documentation
36-
### REST
37-
https://github.com/netguru/fe-recru-api/wiki
3852

39-
### GraphQL
40-
Playground is available on localhost:4000
53+
<!-- GETTING STARTED -->
54+
## Getting Started
55+
56+
Before you started, make sure you have a Docker installed on your local machine.
57+
58+
### Initial setup
59+
60+
This is an example of how to list things you need to use the software and how to install them.
61+
62+
* Launch Docker compose to run Prisma's nad MySQL's images.
63+
```docker-compose up -d```
64+
65+
* Generate prisma instance based on datamodel
66+
```npm run generate```
67+
68+
* Deploy database schema into the MySQL database
69+
```npm run deploy```
70+
71+
* Seed the database with default data
72+
```npm run seed```
73+
74+
### Running the project
75+
#### For REST API
76+
77+
* Run in terminal:
78+
```npm run start:rest```
79+
80+
#### For GraphQL
81+
82+
* Run in terminal
83+
```npm run start:graphql```
84+
85+
86+
#### Important
87+
88+
* Deploy new schema (after modifying `datamodel.prisma`)
89+
```prisma deploy```
90+
91+
* AFTER MODIFYING `prisma.yml`
92+
```npm run generate```
93+
94+
95+
<!-- Authors -->
96+
## Authors
97+
98+
1. <a href="https://github.com/qmixi" target="_blank">Piotr Kumorek</a>
99+
2. <a href="https://github.com/SebastianStj" target="_blank">Sebastian Stój</a>
100+
3. <a href="https://github.com/slawomirkolodziej" target="_blank">Sławek Kołodziej</a>
101+
4. <a href="https://github.com/Kamieniu" target="_blank">Franciszek Stodulski</a>
102+
103+
<!-- LICENSE -->
104+
## License
105+
106+
Distributed under the MIT License. See `LICENSE` for more information.
107+
108+
<!-- MARKDOWN LINKS & IMAGES -->
109+
<!-- https://www.markdownguide.org/basic-syntax/#reference-style-links -->
110+
[contributors-shield]: https://img.shields.io/github/contributors/othneildrew/Best-README-Template.svg?style=flat-square
111+
[contributors-url]: https://github.com/netguru/fe-recru-api/graphs/contributors
112+
[forks-shield]: https://img.shields.io/github/forks/othneildrew/Best-README-Template.svg?style=flat-square
113+
[forks-url]: https://github.com/netguru/fe-recru-api/network/members
114+
[stars-shield]: https://img.shields.io/github/stars/othneildrew/Best-README-Template.svg?style=flat-square
115+
[stars-url]: https://github.com/netguru/fe-recru-api/stargazers
116+
[issues-shield]: https://img.shields.io/github/issues/othneildrew/Best-README-Template.svg?style=flat-square
117+
[issues-url]: https://github.com/netguru/fe-recru-api/issues
118+
[license-shield]: https://img.shields.io/github/license/othneildrew/Best-README-Template.svg?style=flat-square
119+
[license-url]: https://github.com/othneildrew/Best-README-Template/blob/master/LICENSE.txt
120+
[product-screenshot]: images/screenshot.png

0 commit comments

Comments
 (0)