Read and share anything readable in Readable !
Anti-social social bookmark service
interest
with various tags
tag
analysisnpm install -g @nrwl/cli // nx
npm install -g @nestjs/cli // nest
yarn
For local development, use yarn dev server
and yarn dev client
.
yarn dev server
yarn dev client
client
yarn codegen
Don't use yarn start
for local development.
Now it's only for deployment.
# Don't use for local development. Now it's for the deployment.
yarn build
yarn start
type (module): commit message
client
server
🚚 (client): Move app module to the top
📦 (server): Add typeorm and mysql package
Search/Select emoji for indicating type of commit and write commit message.
Gitmoji - Visual Studio Marketplace
GraphQL
Use efficiently Apollo client cache for updating after mutation
DDD style folder architecture
// module (user-bookmark)
├── user-bookmark
│ ├── applications
│ │ └── usecases
│ │ ├── add-user-bookmark-with-auth
│ │ ├── delete-user-bookmark-with-auth
│ │ ├── get-my-user-bookmarks-with-auth
│ │ └── sync-google-calendar-with-auth
│ ├── domain
│ │ ├── errors
│ │ │ └── user-bookmark.error.ts
│ │ └── model
│ │ └── user-bookmark.model.ts
│ ├── infrastructures
│ │ └── typeorm
│ │ ├── entities
│ │ │ └── user-bookmark.entity.ts
│ │ └── repositories
│ │ └── user-bookmark.repository.ts
│ ├── user-bookmark.controller.ts
│ ├── user-bookmark.module.ts
│ ├── user-bookmark.resolver.ts
│ └── user-bookmark.service.ts
libs
and feature
tailwind css
Before the AWS configuration, use quick and dirty.
server
nx nest.js appclient
nx next.js appnest.js with production built static files (client)
yarn build
yarn start
Environment | apps |
NODE_ENV |
DB | Port | URL |
---|---|---|---|---|---|
development | server |
development |
development | 7000 |
http://localhost:8000/graphql |
client |
development |
development | 4200 |
http://localhost:4200 | |
staging | server |
production |
development | 80/443 |
https://readable-2021.herokuapp.com/graphql |
client |
production |
development | 80/443 |
https://readable-2021.vercel.app |