Skip to content

vietcoder1998/calendar-todo-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

calendar-todo-backend

This project is a mock implementation of a MySQL database using Prisma. It serves as a template for building applications that require a database connection and data modeling.

Project Structure

mysql-prisma-mock
├── prisma
│   └── schema.prisma       # Defines the Prisma schema and data model
├── src
│   ├── index.ts            # Entry point of the application
│   └── types
│       └── index.ts        # TypeScript types and interfaces
├── .env                     # Environment variables for the application
├── .env.example             # Template for the .env file
├── .gitignore               # Files and directories to ignore in Git
├── package.json             # npm configuration file
├── tsconfig.json            # TypeScript configuration file
└── README.md                # Project documentation

Setup Instructions

  1. Clone the repository:

    git clone <repository-url>
    cd mysql-prisma-mock
  2. Install dependencies:

    npm install
  3. Configure environment variables:

    • Copy .env.example to .env and update the values with your MySQL database connection details.
  4. Run the application:

    npm run start

Usage

  • The application initializes a Prisma client and connects to the MySQL database defined in the .env file.
  • You can modify the prisma/schema.prisma file to define your data models and relationships.
  • Use the src/index.ts file to set up any necessary database connections or mock data.

Contributing

Feel free to submit issues or pull requests to improve the project.

License

This project is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages