Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jhonoryza/sveltekit-todoapps-api
https://github.com/jhonoryza/sveltekit-todoapps-api
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/jhonoryza/sveltekit-todoapps-api
- Owner: jhonoryza
- Created: 2023-08-17T16:22:33.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-29T08:28:53.000Z (over 1 year ago)
- Last Synced: 2023-08-29T14:18:38.438Z (over 1 year ago)
- Language: TypeScript
- Size: 190 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# sveltekit todoapps api
this repo is an example implementation to create restfull api with svelkit and add integration testing
## what in this repo ?
- svelkit (js framework)
- playwright (test package)
- drizzle-orm (orm)
- drizzle-kit (orm cli helper)
- mysql2 (mysql driver)
- joi (validation package)
- bcrypt (hash package)
- winston (logger package)
- uuid (for generate token)## Developing
```bash
pnpm install
cp .env.example .env
pnpm migration:generate
pnpm migration:push #choose env development
pnpm run dev
```notes:
- check .env and create database according to your development environment
- check .env.test before running test and create database according test environment
- recommended to use different database for development and testing## Testing
```bash
pnpm migration:generate
pnpm migration:push #choose env test
pnpm run test
```