mikan3rd/nest-next-sample
À propos
NestJS + Next.js sample application / Backend and Frontend use only TypeScript!!!
Développement web et applicatifProgression mesurée des étoiles
- in 24h
- 0
- in 7 days
- Historique en cours
- in 15 days
- Historique en cours
- in 1 month
- Historique en cours
Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.
README.md
OriginalThis project use only TypeScript!!
Tech stack
- Backend
- NestJS
- Prisma
- GraphQL
- Frontend
- Next.js / React
- GraphQL Code Generator
- Apollo Client
- Semantic UI
- emotion
- Other
- yarn workspace
- ESLint / Prettier / husky
- Docker / Docker Compose
- Vercel
- GCP (CloudSQL / Cloud Run / Cloud Build)
Getting Started
Docker
You can launch the development environment with one command!
docker-compose up
After successful launch, go to the following URL in your browser!
- Backend: http://localhost:3300/graphql
- Frontend: http://localhost:3000
:warning: Containers have dependencies, but the next container may start to be started before the preparation is complete. If it fails for that reason, please specify the start-up separately as follows.
docker-compose up mysql
See docker-compose.yaml if you want to know more.
Local
- Prepare MySQL and create a database for development.
Then create file
packages/backend/.envand fill in the environment variables.
DATABASE_URL="mysql://username:password@localhost:3306/nest_next_sample"
- Do a database migration.
cd packages/backend
yarn install
yarn migrate:deploy
- Run the startup command for backend.
yarn start:dev
After successful launch, go to http://localhost:3300/graphql in your browser!
- Create file
packages/frontend/.envand fill in the environment variables.
SERVER_APOLLO_URI="http://localhost:3300"
PUBLIC_APOLLO_URI="http://localhost:3300"
- Run the startup command for frontend.
cd packages/frontend
yarn dev
After successful launch, go to http://localhost:3000 in your browser!
GraphQL exmaple
mutation {
saveTask(task: { title: "test", categoryIds: [] }) {
id
title
categories {
id
name
color
}
}
}
query {
task(id: 1) {
id
title
taskContents {
id
checked
}
categories {
id
name
}
}
}
Explorer des projets similaires
Chargement…