Skip to content

zaqoutm/aljazara

Repository files navigation

▲ Aljazara News Website

🔗 visit https://aljazara.com

License commits

Aljazara homepage

🚀 Getting Started

git clone https://github.com/zaqoutm/aljazara.git
cd aljazara
npm install

# Run with "Directus" app

  1. We need Directus app running https://your-api-url
  2. Set .env variables

NEXT_PUBLIC_API_PATH=http://localhost:8055/items CURRENT_IMPL=directus

  1. Update next.config.ts remove output: 'export', or just comment it out //

npm run dev http://localhost:3000/

# Try with fakerjs

  1. Enable app route /src/app/_api to .../api

just rename the folder, remove the underscore _

  1. next.config.ts disable output: 'export'

npm run dev http://localhost:3000/


👷‍♀️ Build .ssg

(SSG) Static Site Generation

  • Enable output:'export' in next.config.ts
  • Remove or hide src/app/api adding _ .../_api
  • Set .env variables

NEXT_PUBLIC_API_PATH=http://localhost:8055/items CURRENT_IMPL=directus

npm run lint
npm run build && npm run postbuild
SSG

Try live-server out http://127.0.0.1:8080


🛠️ Tech stack

  • ▲ Next.js 15.1.6
  • React 19
  • motion
  • fakerjs
  • moment

src/app/api/articles/route.ts

http://localhost:3000/api/articles/

> Node v22.13.1 Maintenance LTS
> npm 11.4.2

License

📄 License MIT License © 2025 📬 Contact Email: mo.zaqout@gmail.com

Built with ❤️ by Mohammed

About

news network

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors