Giter Site home page Giter Site logo

leosuncin / goal-app Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 0.0 268 KB

Example of how-to use next-auth, mongodb and rtk-query

License: GNU General Public License v3.0

Shell 0.56% TypeScript 85.56% JavaScript 3.28% CSS 5.76% Dockerfile 3.74% HTML 1.10%

goal-app's Introduction

๐Ÿ”ฌ Example of how-to use RTK Query, Next Redux Wrapper, NextAuth and MongoDB

GPL v3 License

Use MongoDB to store the data, RTK Query to make requests, Next Redux Wrapper to dispatch action in the server side, NextAuth to authenticate using email and credentials provider

Acknowledgements

Environment Variables

To run this project, you will need to add the following environment variables to your .env file

NEXTAUTH_URL example http://localhost:3000

NEXTAUTH_SECRET a random long string, create one using in the terminal openssl rand -base64 32

MONGO_URL a connection string to the MongoDB instance, example mongodb://localhost/admin

You can copy the example .env and edit the values

  cp .env.example .env

Run Locally

Clone the project

  git clone https://github.com/leosuncin/goal-app.git

Go to the project directory

  cd goal-app

Install dependencies

  pnpm install

Start the services using Docker Compose

  docker-compose up -d

Start the server

  pnpm dev

License

Release under the terms of GPL v3

goal-app's People

Contributors

leosuncin avatar renovate[bot] avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

goal-app's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • chore(deps): update dependency @types/react-redux to v7.1.33
  • chore(deps): update nextjs monorepo to v12.3.4 (@next/env, eslint-config-next, next)
  • fix(deps): update dependency @next-auth/mongodb-adapter to v1.1.3
  • chore(deps): update dependency @types/node to v18.19.41
  • chore(deps): update dependency cypress-each to v1.14.0
  • chore(deps): update dependency eslint to v8.57.0
  • chore(deps): update dependency nodemailer to v6.9.14
  • chore(deps): update dependency typescript to v4.9.5
  • chore(deps): update maildev/maildev docker tag to v2.1.0
  • fix(deps): update dependency @node-rs/bcrypt to v1.10.4
  • fix(deps): update dependency http-status-codes to v2.3.0
  • fix(deps): update dependency mongodb to v4.17.2
  • fix(deps): update dependency next-redux-wrapper to v8.1.0
  • chore(deps): update actions/cache action to v4
  • chore(deps): update actions/checkout action to v4
  • chore(deps): update actions/setup-node action to v4
  • chore(deps): update actions/upload-artifact action to v4
  • chore(deps): update dependency @faker-js/faker to v8
  • chore(deps): update dependency @svgr/core to v8
  • chore(deps): update dependency @types/node to v20
  • chore(deps): update dependency cypress to v13
  • chore(deps): update dependency cypress-plugin-api to v2
  • chore(deps): update dependency eslint to v9
  • chore(deps): update dependency mongo-seeding to v4
  • chore(deps): update dependency mongo-seeding-cli to v4
  • chore(deps): update dependency typescript to v5
  • chore(deps): update mcr.microsoft.com/vscode/devcontainers/javascript-node docker tag to v1
  • chore(deps): update mongo docker tag to v7
  • chore(deps): update oxsecurity/megalinter action to v7
  • chore(deps): update peter-evans/create-pull-request action to v6
  • chore(deps): update stefanzweifel/git-auto-commit-action action to v5
  • fix(deps): update dependency @reduxjs/toolkit to v2
  • fix(deps): update dependency mongodb to v6
  • fix(deps): update dependency next-connect to v1
  • fix(deps): update dependency react-redux to v9
  • fix(deps): update dependency react-toastify to v10
  • ๐Ÿ” Create all rate-limited PRs at once ๐Ÿ”

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

docker-compose
.devcontainer/docker-compose.yml
  • maildev/maildev 2.0.5
docker-compose.yml
  • mongo 6
  • mongo-express 1.0.0-alpha
  • maildev/maildev 2.0.5
dockerfile
.devcontainer/Dockerfile
  • mcr.microsoft.com/vscode/devcontainers/javascript-node 0-16-bullseye
github-actions
.github/workflows/ci.yml
  • actions/checkout v3
  • pnpm/action-setup v2
  • actions/setup-node v3
  • cypress-io/github-action v4
  • actions/upload-artifact v3
  • actions/checkout v3
  • pnpm/action-setup v2
  • actions/setup-node v3
  • actions/cache v3
  • cypress-io/github-action v4
  • actions/upload-artifact v3
.github/workflows/mega-linter.yml
  • actions/checkout v3
  • pnpm/action-setup v2
  • oxsecurity/megalinter v6
  • actions/upload-artifact v3
  • peter-evans/create-pull-request v4
  • stefanzweifel/git-auto-commit-action v4
npm
package.json
  • @next-auth/mongodb-adapter 1.1.1
  • @node-rs/bcrypt 1.6.1
  • @reduxjs/toolkit 1.8.6
  • http-status-codes 2.2.0
  • mongodb 4.11.0
  • next 12.3.2
  • next-auth 4.15.0
  • next-connect 0.13.0
  • next-redux-wrapper 8.0.0
  • react 18.2.0
  • react-dom 18.2.0
  • react-redux 8.0.4
  • react-toastify 9.0.8
  • @faker-js/faker 7.6.0
  • @iconify/json 2.1.128
  • @next/env 12.3.2
  • @svgr/core 6.5.0
  • @types/node 18.11.9
  • @types/react 18.0.23
  • @types/react-redux 7.1.24
  • cypress 10.11.0
  • cypress-each 1.11.0
  • cypress-plugin-api 1.4.1
  • eslint 8.26.0
  • eslint-config-next 12.3.2
  • mongo-seeding 3.7.2
  • mongo-seeding-cli 3.7.2
  • nodemailer 6.8.0
  • typescript 4.8.4
  • unplugin-icons 0.14.12

  • Check this box to trigger a request for Renovate to run again on this repository

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.