Coder Social home page Coder Social logo

blog-technical-interview's Introduction

Technical interview full stack | Alexis Lo ๐Ÿ‘‹๐Ÿผ

Build with:

  • Next Js Typescript
  • Graphql
  • Mongoose
  • MongoDB

Requierments:

  • mongodb ( Create local conection or remote)
  • node 16+

First, run the development server: โšก๏ธ

yarn # install dependecies
# or
yarn dev # run server =

Open web client http://localhost:3000

Open graphql client http://localhost:3000/api/graphql

Features:

  • API Graphql
  • Connection with real database

As an unauthenticated user.

  • I can see blog posts available in the site โœ…
  • I can see the full detail of each blog โœ…
  • I can search for a post. โœ…
  • When making a post a favorite I should be able to see a sign-up/sign-in modal โœ…

As an authenticated user

  • I can save a post (mark as favorite) โœ…
  • I can see all my favorites posts โœ…
  • I can search a previously saved post. โœ…
  • I can remove a post from my favorites โœ…
  • As a user I can create and edit posts โœ…

Folder structure ๐Ÿ“

โ”œโ”€โ”€ README.md
โ”œโ”€โ”€ globals.css
โ”œโ”€โ”€ next-env.d.ts
โ”œโ”€โ”€ next.config.js
โ”œโ”€โ”€ package-lock.json
โ”œโ”€โ”€ package.json
โ”œโ”€โ”€ pages
โ”‚ย ย  โ”œโ”€โ”€ \_app.tsx
โ”‚ย ย  โ”œโ”€โ”€ api
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ auth
โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ [...nextauth].tsx
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ graphql.ts
โ”‚ย ย  โ”œโ”€โ”€ article
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ [id].tsx
โ”‚ย ย  โ”œโ”€โ”€ favorites.tsx
โ”‚ย ย  โ””โ”€โ”€ index.tsx
โ”œโ”€โ”€ postcss.config.js
โ”œโ”€โ”€ public
โ”‚ย ย  โ””โ”€โ”€ favicon.ico
โ”œโ”€โ”€ src
โ”‚ย ย  โ”œโ”€โ”€ assets
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ Logo.png
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ auth-modal.png
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ empty-state.png
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ icons
โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ face.png
โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ insta.png
โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ twitter.png
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ wave-card.svg
โ”‚ย ย  โ”œโ”€โ”€ components
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ authModal.tsx
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ blogList.tsx
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ blogModal.tsx
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ cardBlog.tsx
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ emptyState.tsx
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ footer.tsx
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ motion.div.tsx
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ navbar.tsx
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ overlayLoading.tsx
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ searchBar.tsx
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ wrapper.tsx
โ”‚ย ย  โ”œโ”€โ”€ constants
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ enums
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ modal-auth-types.ts
โ”‚ย ย  โ”œโ”€โ”€ db
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ config.ts
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ mock-blog-data.json
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ mockBlogs.ts
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ models
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ blog.ts
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ user.ts
โ”‚ย ย  โ”œโ”€โ”€ graphql
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ client.ts
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ queries.ts
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ resolvers.ts
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ shema.ts
โ”‚ย ย  โ””โ”€โ”€ hooks
โ”‚ย ย  โ”œโ”€โ”€ useCheckIfBlogIsFavorite.tsx
โ”‚ย ย  โ”œโ”€โ”€ useEscapeKey.tsx
โ”‚ย ย  โ””โ”€โ”€ useSaveFavoriteBlog.tsx
โ”œโ”€โ”€ tailwind.config.js
โ”œโ”€โ”€ tsconfig.json
โ””โ”€โ”€ yarn.lock

blog-technical-interview's People

Contributors

alexlodev avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.