- About the Project
- Technologies Used
- Prerequisites
- Installation
- Usage
- Insomnia File
- Contribution
- License
- Contact
This project focuses on using Prisma ORM for database interaction in Node.js applications. The goal is to demonstrate how to set up and use Prisma in a modern development environment.
- Node.js
- Prisma ORM
- Docker
- Yarn
- Express
- Bcrypt
- Cors
- Dotenv
- Sucrase (for development)
- Nodemon (for development)
Before starting, make sure you have installed on your machine:
- Node.js (version 12 or higher)
- Yarn
- Docker
- Git
-
Start your Docker Desktop.
-
Clone the repository:
git clone https://github.com/mdanieldantas/API-Cadastro.git -
Navigate to the project directory:
cd user-registration-api -
Install dependencies:
yarn install -
Start the Docker environment:
docker-compose up -
Set up Prisma:
npx prisma migrate dev --name init
-
To start the development server:
yarn start
The insomnia.json file exports various information from Insomnia, including:
-
Requests: Details about the HTTP requests created, such as URLs, methods (GET, POST, etc.), headers, and request body.
-
Environments: Environment configurations, including variables used in requests.
-
Collections: Organization of requests into folders or groups.
-
Authentication: Information about authentication methods used in requests.
-
Cookies: Cookie data associated with requests.
This file is useful for sharing and importing Insomnia configurations among team members or development environments.
Contributions are always welcome! Please follow these steps:
- Fork the project.
- Create your feature branch:
git checkout -b my-new-feature. - Commit your changes:
git commit -m 'Add some feature'. - Push to the branch:
git push origin my-new-feature. - Open a Pull Request.
This project is licensed under the MIT License. See the LICENSE file for more details.
M. Daniel Dantas
LinkedIn: https://www.linkedin.com/in/mdanieldantas
Email: contatomarcosdgomes@gmail.com
Project Link: https://github.com/mdanieldantas/API-Cadastro.git