An open API service indexing awesome lists of open source software.

https://github.com/4kauanmota/customers-api


https://github.com/4kauanmota/customers-api

fastify mongodb nodejs prisma swagger typescript yarn

Last synced: 2 months ago
JSON representation

Awesome Lists containing this project

README

          

![Project Stars](https://img.shields.io/github/stars/4kauanmota/customers-API?color=1e90ff) ![Project Commits Week](https://img.shields.io/github/commit-activity/w/4kauanmota/customers-API?color=1e90ff)

# 📄 **Informations**

**This is my first API project using fastify, mongodb and prisma**


# ✨ **Features**

- CRUD
- Customer
- Create
- List
- Delete
- Update


# 💻 **Technologies**

- [TYPESCRIPT](https://www.typescriptlang.org/)
- [YARN](https://yarnpkg.com/)
- [VISUAL STUDIO CODE](https://code.visualstudio.com/)
- [FASTIFY](https://www.fastify.io/)
- [PRISMA](https://www.prisma.io/)
- [SWAGGER](https://swagger.io/)
- [NODE.JS](https://nodejs.org/)
- [MONGODB](https://www.mongodb.com/)


# ⚙️ **How to run**

### Requirements

- [GIT](https://git-scm.com/)
- [YARN](https://yarnpkg.com/)
- [NODE.JS](https://nodejs.org/en)

### Codes

- `git clone https://github.com/4kauanmota/customers-API.git`
- `yarn`
- `npx prisma generate`
- `yarn run dev`

|

### 1. Cloning project

First you will need to open the terminal in the folder where you want to clone this project, and then, you paste this code

```
git clone https://github.com/4kauanmota/devCalc-WEB
```

### 2. Installing dependencies

In the project folder terminal you should enter

```
yarn
```

to install project depedencies

### 3. Creating .env file

In the project folder, create a .env file and add the following:

```
DATABASE_URL="Your MongoDB url"
```

Replace **Your MongoDB URL** with the actual connection string for your MongoDB database.

### 4. Generating the Database Client

In the project folder terminal, run the following command:

```
npx prisma generate
```

This command generates the Prisma Client based on your schema and makes it ready for use in the project.

### 5. Running project

To run the project you just need to enter

```
yarn run dev
```


# 👀 **Preview**

**Click on the images to see a full video ;)**

### Desktop

[![IMAGE ALT TEXT HERE](https://img.youtube.com/vi/3yMXbgJfxhY/0.jpg)](https://www.youtube.com/watch?v=3yMXbgJfxhY)


# 📝 **Author**

[Kauan Soares Mota](https://github.com/4kauanmota)