REST API for Kuwot app
Find a file
2025-10-18 23:33:22 +07:00
.vscode implement auth 2025-10-18 23:33:22 +07:00
src implement auth 2025-10-18 23:33:22 +07:00
.env.example implement auth 2025-10-18 23:33:22 +07:00
.gitignore implement auth 2025-10-18 23:33:22 +07:00
.prettierignore initial commit 2025-10-18 10:37:22 +07:00
.prettierrc initial commit 2025-10-18 10:37:22 +07:00
package-lock.json implement auth 2025-10-18 23:33:22 +07:00
package.json implement auth 2025-10-18 23:33:22 +07:00
README.md implement auth 2025-10-18 23:33:22 +07:00
tsconfig.json implement auth 2025-10-18 23:33:22 +07:00

kuwot-api-js

A Node.js REST API built with TypeScript and Express.

Getting Started

Prerequisites

  • Node.js >= 18
  • npm

Installation

npm install

Configuration

  1. Copy .env.example to .env and fill in your secrets:
    cp .env.example .env
    
  2. Set your Unsplash access key and other variables in .env.

Running the Server

npm start

Formatting Code

npm run format
  • ESLint
  • Prettier

Project Structure

kuwot-api-js/
├── src/
│   ├── index.ts         # Entry point
│   ├── routes.ts        # API routes
│   ├── types.d.ts       # Type definitions
│   └── data/
│       ├── db.ts        # Database logic
│       └── unsplash.ts  # Unsplash API integration
├── .env.example         # Example environment variables
├── .gitignore           # Git ignore rules
├── package.json         # Project metadata and scripts
├── tsconfig.json        # TypeScript configuration
└── .vscode/
    ├── launch.json      # Debug configuration
    └── extensions.json  # Recommended extensions

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

ISC