Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ditsmod/seed
Ditsmod seed
https://github.com/ditsmod/seed
ditsmod seed
Last synced: about 1 month ago
JSON representation
Ditsmod seed
- Host: GitHub
- URL: https://github.com/ditsmod/seed
- Owner: ditsmod
- Created: 2020-01-28T19:59:25.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-11-23T10:22:55.000Z (about 2 months ago)
- Last Synced: 2024-11-23T11:24:03.706Z (about 2 months ago)
- Topics: ditsmod, seed
- Language: TypeScript
- Homepage: https://ditsmod.github.io/en/
- Size: 1.9 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Description
This is [Ditsmod](https://github.com/ditsmod/ditsmod) seeds.
## Usage
From first terminal:
```bash
git clone --depth 1 https://github.com/ditsmod/seed.git my-app
cd my-app
npm i
```Start in development mode:
```bash
npm run start:dev
```You can check the server operation using `curl`:
```bash
curl -i localhost:3000/api/hello
```Or simply by going to [http://localhost:3000/api/hello](http://localhost:3000/api/hello) in your browser.
By default, the application works with `info` log level. You can change it in the file `src/app/app.module.ts`.
Start in production mode:
```bash
npm run build
npm run start-prod
```From second terminal, check work:
```bash
curl -i localhost:3000/api/hello
curl -i localhost:3000/api/throw-error
curl -i localhost:3000/api/body -d '{"one":1}' -H 'content-type: application/json'# Use controller as singleton
curl -i localhost:3000/api/hello2
curl -i localhost:3000/api/throw-error2
curl -i localhost:3000/api/body2 -d '{"one":1}' -H 'content-type: application/json'
```## Example
You can see more example usage in [ditsmod repository](https://github.com/ditsmod/ditsmod/tree/main/examples)