Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added .env.development
Empty file.
1 change: 0 additions & 1 deletion .env.example

This file was deleted.

Empty file added .env.production
Empty file.
7 changes: 1 addition & 6 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
{
"extends": [
"next/core-web-vitals",
"standard",
"plugin:tailwindcss/recommended",
"prettier"
]
"extends": ["next/core-web-vitals", "standard", "plugin:tailwindcss/recommended", "prettier"]
}
19 changes: 19 additions & 0 deletions .github/ISSUE_TEMPLATE/another.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: ➕ Other Request
about: Use this template for any other type of request or remark
title: "[Other] "
labels: other
assignees: abdelkabirouadoukou
---

## Description

Describe your request or remark.

## Context

Add any relevant context or examples.

## Additional Information

Add links, screenshots, or details if needed.
33 changes: 33 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
name: 🐞 Bug Report
about: Report a bug or issue
title: "[Bug] "
labels: bug
assignees: abdelkabirouadoukou
---

## Description

Describe the bug you encountered.

## Steps to Reproduce

List the steps to reproduce the bug:

1. ...
2. ...
3. ...

## Expected Behavior

Describe what you expected to happen.

## Screenshots / Logs

Add screenshots or logs if possible.

## Additional Information

- Project version:
- Operating system:
- Browser:
23 changes: 23 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
name: 🚀 Feature Request
about: Propose a new feature for the project
title: "[Feature] "
labels: enhancement, Feature Request
assignees: abdelkabirouadoukou
---

## Description

Describe the requested feature and its purpose.

## Motivation

Why is this feature important?

## Proposed Solution

Explain how it could be implemented.

## Additional Information

Add any relevant context or examples.
19 changes: 19 additions & 0 deletions .github/ISSUE_TEMPLATE/question.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: ❓ Question
about: Ask a question about the project
title: "[Question] "
labels: question
assignees: abdelkabirouadoukou
---

## Question

Describe your question or request for help.

## Context

Add any relevant context or examples.

## Additional Information

Add links or details if needed.
22 changes: 22 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Pull Request

## Description

Briefly describe the changes you made and the motivation behind them.

## Type of Change

- [ ] Bug fix
- [ ] New feature
- [ ] Enhancement
- [ ] Documentation update

## Checklist

- [ ] All tests pass
- [ ] Documentation is updated
- [ ] No conflicts with the main branch

## Additional Information

Add any relevant context, screenshots, or notes for reviewers.
22 changes: 22 additions & 0 deletions .github/workflows/auto-assign.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Auto Assign

on:
issues:
types: [opened]
pull_request:
types: [opened]

jobs:
run:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- name: 'Auto-assign issue'
uses: pozil/auto-assign-issue@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
assignees: abdelkabirouadoukou
numOfAssignee: 2
reviewers: abdelkabirouadoukou
30 changes: 30 additions & 0 deletions .github/workflows/code-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Code Format Check

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
format-check:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install Bun
run: |
curl -fsSL https://bun.sh/install | bash
echo "$HOME/.bun/bin" >> $GITHUB_PATH

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '22.x'

- name: Install dependencies
run: bun ci

- name: Check formatting
run: bun run format:check
26 changes: 26 additions & 0 deletions .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: PR Checks

on:
pull_request:
branches: [main]

jobs:
lint-build-test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Bun
run: |
curl -fsSL https://bun.sh/install | bash
echo "$HOME/.bun/bin" >> $GITHUB_PATH
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '22.x'
- name: Install dependencies
run: bun ci
- name: Lint
run: bun run lint
- name: Build
run: bun run build
6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ yarn-debug.log*
yarn-error.log*

# local env files
.env*.local
.env
.env.local
.env.development.local
.env.test.local
.env.production.local

# vercel
.vercel
Expand Down
24 changes: 24 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"semi": true,
"singleQuote": false,
"tabWidth": 2,
"trailingComma": "all",
"printWidth": 100,
"useTabs": false,
"quoteProps": "as-needed",
"bracketSpacing": true,
"bracketSameLine": false,
"arrowParens": "avoid",
"endOfLine": "lf",
"embeddedLanguageFormatting": "auto",
"htmlWhitespaceSensitivity": "css",
"insertPragma": false,
"jsxSingleQuote": false,
"proseWrap": "preserve",
"requirePragma": false,
"vueIndentScriptAndStyle": false,
"experimentalTernaries": false,
"plugins": [
"prettier-plugin-tailwindcss"
]
}
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM node:22-alpine

WORKDIR /app
COPY package.json .
RUN bun i

COPY . .
RUN bun run build

CMD ["bun", "run", "start"]
11 changes: 11 additions & 0 deletions Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM node:22-alpine

WORKDIR /app
COPY package.json .
RUN bun i

COPY . .

EXPOSE 3000

CMD ["bun", "run", "dev"]
10 changes: 10 additions & 0 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 31 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
version: '3.8'

services:
app:
build:
context: .
dockerfile: Dockerfile
ports:
- "3000:3000"
env_file:
- .env.production.local
restart: unless-stopped
container_name: thinktapfast-blog-prod

app-dev:
build:
context: .
dockerfile: Dockerfile.dev
ports:
- "3001:3000"
env_file:
- .env.development.local
volumes:
- .:/app
- /app/node_modules
- /app/.next
environment:
- NODE_ENV=development
- WATCHPACK_POLLING=true
restart: unless-stopped
container_name: thinktapfast-blog-dev
12 changes: 6 additions & 6 deletions next-sitemap.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/** @type {import('next-sitemap').IConfig} */
module.exports = {
siteUrl: 'https://thinktapfast-blog.vercel.app',
generateRobotsTxt: true, // generate also robots.txt
changefreq: 'weekly',
priority: 0.7,
sitemapSize: 7000,
exclude: ['/admin/*', '/api/*'], // exclude URLs
siteUrl: "https://thinktapfast-blog.vercel.app",
generateRobotsTxt: true, // generate also robots.txt
changefreq: "weekly",
priority: 0.7,
sitemapSize: 7000,
exclude: ["/admin/*", "/api/*"], // exclude URLs
};
Loading
Loading