Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yeukfei02/notely

free, open source notes in web (notes mac app alternative)
https://github.com/yeukfei02/notely

graphql hacktoberfest monorepo nestjs nodejs notes nx nx-workspace postgres prisma react typescript

Last synced: 8 days ago
JSON representation

free, open source notes in web (notes mac app alternative)

Awesome Lists containing this project

README

        




notely













free, open source notes in web (notes mac app alternative)

documentation:

## Tech Stack

- Node.js
- Nestjs
- Prisma
- Postgres
- Graphql
- React
- Apollo Client
- Typescript
- Nx workspace

## Requirement

- install yarn
- install node (v16+)
- install nx ()

## Testing and run

```zsh
// install node dependencies
$ yarn

// run api and web in local
$ yarn run dev

// run api in local
$ yarn run dev:api

// run web in local
$ yarn run dev:web

// production
$ yarn run start

// build dist for both api and web
$ yarn run build

// build dist only api
$ yarn run build:api

// build dist only web
$ yarn run build:web

// run test case for both api and web
$ yarn run test

// run test case only api
$ yarn run test:api

// run test case only web
$ yarn run test:web

// lint code
$ yarn run lint

// format code
$ yarn run format
```

```zsh
// create module
$ nx g @nrwl/nest:module

// create resolver
$ nx g @nrwl/nest:resolver

// create service
$ nx g @nrwl/nest:service

// generate schema.prisma and prisma client
$ yarn run prisma:generate

// create migration file if schema.prisma changed
$ yarn run prisma:migrate:dev

// reset database
$ yarn run prisma:migrate:reset

// apply pending migrations in the production/staging database
$ yarn run prisma:migrate:deploy

// check migrations status in the production/staging database
$ yarn run prisma:migrate:status

// push schema.prisma state to database
$ yarn run prisma:db:push

// seed data to database
$ yarn run prisma:db:seed

// validate schema.prisma
$ yarn run prisma:validate

// format schema.prisma
$ yarn run prisma:format

// open prisma studio
$ yarn run prisma:studio
```

```zsh
// check for un-formatted files
$ nx format:check

// overwrite un-formatted files
$ nx format:write

// check nx graph
$ nx graph

// lists installed plugins, capabilities of installed plugins and other available plugins.
$ nx list

// reports useful version numbers to copy into the Nx issue template
$ nx report

// makes sure the workspace is connected to Nx Cloud
$ nx connect-to-nx-cloud

// check more nx commands
$ nx --help
```