Skip to content

Instantly share code, notes, and snippets.

View duanyrf's full-sized avatar
:octocat:
Always learning, and teaching, and learning, ...

Duany Dreyton duanyrf

:octocat:
Always learning, and teaching, and learning, ...
View GitHub Profile

Create React and Typescript project with Vite

pnpm create vite;

Choose react + Typescript + SWC template project.

Install and configure tailwindcss

  1. install dependencies with pnpm add -D tailwindcss postcss autoprefixer;

  2. Generate both tailwind.config.cjs and postcss.config.cjs with pnpm exec tailwindcss init -p;

  3. Configure your template paths in tailwind.config.cjs file:

@duanyrf
duanyrf / compose.yaml
Created January 31, 2023 19:33
Docker compose (version 2) for Postgres database with local volume defined
services:
db:
image: postgres
ports:
- 5432:5432
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: 123456
POSTGRES_DB: ovisionweb
volumes:
@duanyrf
duanyrf / docker-compose.yml
Created January 27, 2023 20:40
docker-compose for MySQL latest docker image
version: "3.9"
services:
db:
image: mysql:latest
environment:
MYSQL_DATABASE: database-name
MYSQL_ROOT_PASSWORD: your_root_password
MYSQL_USER: a_common_user
MYSQL_PASSWORD: password_for_user