More Premium Hugo Themes Premium Nuxt Themes

Nuxt_express_jwt_crud

Admin CRUD boilerplate made with Express backend, Vue/Nuxt frontend, MongoDB, and JWT authentification

Nuxt_express_jwt_crud

Admin CRUD boilerplate made with Express backend, Vue/Nuxt frontend, MongoDB, and JWT authentification

Author Avatar Theme by edmundpf
Github Stars Github Stars: 47
Last Commit Last Commit: May 29, 2020 -
First Commit Created: Dec 18, 2023 -
Nuxt_express_jwt_crud screenshot

Overview:

The Nuxt/Express/MongoDB/JWT Admin CRUD Boilerplate is an automatic Express API and CRUD web app that allows users to manage their MongoDB collections. By adding a schema to the data_api/models folder and running the setup script, users can customize their configuration and add their admin credentials. All API endpoints and web app pages are protected by JSON Web Token authentication.

Features:

  • Automatic Express API and CRUD web app for MongoDB collections
  • Customizable configuration and admin credentials
  • JSON Web Token authentication for API endpoints and web app pages

Installation:

To install the Nuxt/Express/MongoDB/JWT Admin CRUD Boilerplate, follow these steps:

  1. Make sure your MongoDB server is running.
  2. Set up a secret key for creating an admin user:
    • Select option (3) in the CLI.
    • Set up your key.
  3. Add an admin user to access the web app:
    • Select option (4) in the CLI to create an admin account.
  4. Configure the database schema if you added or removed any schema in the data_api/models folder:
    • Select option (2) in the CLI to configure the database schema.
    • Note: Do not rename or edit the userAuth or secretKey schema, as they are essential for admin access.
  5. Edit the app configuration if desired:
    • Select option (1) in the CLI to edit the app configuration.
  6. Clear admin accounts and secret keys if needed:
    • Use option (5) in the CLI to clear admin accounts and secret keys.
  7. Update the admin password if desired:
    • Use option (6) in the CLI to update the admin password.
  8. Run the web app:
    • Shut off the API server if using the web app.
    • The web app will automatically launch the API server as server middleware.
    • Follow the instructions provided to log in using the credentials created with the CLI.
    • Note: The JSON Web Token has a 24-hour inactivity timeout.

Summary:

The Nuxt/Express/MongoDB/JWT Admin CRUD Boilerplate is a convenient solution for creating an Express API and CRUD web app for MongoDB collections. It simplifies the setup process by automatically generating API endpoints and providing JSON Web Token authentication. With easy configuration options, users can quickly customize their application and manage their data efficiently.