Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nextjs-prisma-graphql-todolist
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open-source
challenges
nextjs-prisma-graphql-todolist
Commits
476fa98c
Commit
476fa98c
authored
3 years ago
by
Marco Wettstein
Browse files
Options
Downloads
Patches
Plain Diff
docs: update challenge
parent
b50093df
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+21
-4
21 additions, 4 deletions
README.md
with
21 additions
and
4 deletions
README.md
+
21
−
4
View file @
476fa98c
## starter challenge
# starter challenge
## The challenge
Your challenge is to create a good old todo app. Boring, i know, but still a good exercise:
-
A logged in user should be able to create new Todo-lists
-
A list should have some title and of course Todos
-
A todo has some title and whether it's done
-
users can have multiple todolists
-
everything should be persisted in the database
-
use apollo queries and mutations to fetch and update data
-
other users or not logged in users should not see other's todolists
Feel free to spice things up, make it beautiful, fancy, add more functionality, etc.
## Setup
This is a
[
nextjs
](
https://nextjs.org/
)
project with
...
...
@@ -7,19 +23,20 @@ This is a [nextjs](https://nextjs.org/) project with
-
[
nexus
](
https://nexusjs.org/
)
to define graphql resolvers and schema
-
[
prisma
](
https://www.prisma.io/
)
for database (using progress)
-
[
nexus-plugin-prisma
](
https://nexusjs.org/docs/plugins/prisma/overview
)
to derive graphql types from the prisma schema
-
[
styled-components
](
https://github.com/styled-components/styled-components
)
for styling
## getting started
##
#
getting started
run
`yarn dev`
to run it locally on
[
localhost:3000
](
http://localhost:3000
)
## Env vars
##
#
Env vars
You need to define some env vars, see
[
.env.template
](
.env.template
)
.
You additionaly need to create oauth credentials to signin with google (https://console.cloud.google.com/apis/dashboard)
You can also replace
## db schema changes
##
#
db schema changes
edit
[
schema.prisma
](
prisma/schema.prisma
)
to adjust the schema.
Make sure to use the Prisma vscode extension for formatting, syntax highlighting
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment