Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eicrud/eicrud-starter
Starter project for the Eicrud framework.
https://github.com/eicrud/eicrud-starter
crud eicrud example framework nestjs nodejs
Last synced: 1 day ago
JSON representation
Starter project for the Eicrud framework.
- Host: GitHub
- URL: https://github.com/eicrud/eicrud-starter
- Owner: eicrud
- License: mit
- Created: 2024-06-11T19:20:49.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-08-24T13:48:55.000Z (3 months ago)
- Last Synced: 2024-08-24T14:56:18.362Z (3 months ago)
- Topics: crud, eicrud, example, framework, nestjs, nodejs
- Language: TypeScript
- Homepage: https://docs.eicrud.com/installation
- Size: 262 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# eicrud-starter
Starter project for the [Eicrud framework](https://github.com/eicrud/eicrud).# Start the application
1. rename `.env.sample` to `.env` (change your token with something secure)
2. `npm install`
3. `npm run start`
# Change the Database
This repository is configured for mongoDB, to switch to postgreSQL do the following :
1. run `npm i @eicrud/postgresql`
2. update your `src/eicrud.config.service.ts`
```typescript
import { PostgreDbAdapter } from "@eicrud/postgresql";@Injectable()
export class MyConfigService extends CrudConfigService {constructor(
// ...
) {
super({
// ...
dbAdapter: new PostgreDbAdapter(),
});
```3. run `npm i @mikro-orm/postgresql`
3. update your `src/app.module.ts````typescript
import { PostgreSqlDriver } from '@mikro-orm/postgresql';@Module({
imports: [
//...
MikroOrmModule.forRoot({
entities: [...CRUDEntities],
// ...
driver: PostgreSqlDriver,
user: "postgres",
password: "your_password_here",
//...
```