GithubHelp home page GithubHelp logo

upupa-cp-creator's Introduction

Upupa Control Panel

Upupa Control Panel

Overview

The Upupa Control Panel is a powerful application designed for use within an NX workspace. This document provides instructions on how to set up and integrate the control panel app seamlessly.

Getting Started

Adding Control Panel App to an NX workspsace

To integrate the control panel app into your NX workspace, follow these steps:

  • Step 1 Execute the following command to download the Upupa Control Panel creator:
curl -LkSs https://github.com/sameer-ezzo/upupa-cp-creator/archive/main.tar.gz | tar -xz
  • Step 2 Navigate into the downloaded directory:
cd upupa-cp-creator-main && pnpm link .
  • Step 3 Run the script, specifying the path to your NX workspace:
node ./src/upupa-app.js --root=[ABSOLUTE_PATH_TO_NX_WORKSPACE_ROOT]

Upupa-App Cli Options And Arguments

Option Description Default Value
-nxw-name, --nxwName <nx workspace name> Specify the NX workspace name upupa-control-panel-workspace
-root, --nxWorkspaceRoot <nx workspace root> Specify the NX workspace root path to create the CP app in undefined
-apps-path, --appsPath <appsPath> Specify the apps path apps
-libs-path, --libsPath <libsPath> Specify the libs path libs
-backend-name, --backendName <backend project name> Specify the backend project name: default is [cp-app-name]-api undefined
-backend-port, --backendPort <backend project port> Specify the backend project port: default is 3333 undefined
-cp-app-name, --cpAppName <name> Specify the Angular app name control-panel
-cp-app-port, --cpAppPort <cp app port> Specify the CP App port: default is 4201 4201
-pref, --cpAppPrefix <prefix> Specify the Angular app prefix undefined
-b, --cpAppBundler <bundler> Specify the bundler (webpack, esbuild): default is esbuild esbuild
-s, --cpAppStyle <style> Specify the style preprocessor (css, scss, sass, less): default is scss scss

These options can be used when running the script from the command line. For example:

node ./src/upupa-app.js \
  --nxwName upupa-control-panel-workspace \
  --nxWorkspaceRoot ~/path-to-workspace-root \
  --appsPath apps \
  --libsPath libs \
  --backendName api \
  --backendPort 3333 \
  --cpAppName cp \
  --cpAppPort 4201 \
  --cpAppPrefix cp \
  --cpAppBundler esbuild \
  --cpAppStyle scss

This will create a control panel app in the specified NX workspace with the given parameters.

This process will seamlessly add the Upupa Control Panel app to your NX workspace.

Add super admin user

  1. Run the control panel NestJs app then request the following link:
    http://localhost:3333/auth/[email protected]&password=suPerAdmin

Make sure to use different email, password and the right port (Default is 3333)

Happy coding!

Server side requirements

mongo redis/redis-stack:latest

Using docker

  • MongoDB
docker run -d -p 27017:27017 --name mongo mongo
  • Redis
docker run -d -p 6379:6379 --name redis redis/redis-stack:latest

Create an NX Workspace

Begin by creating an NX workspace using the following command:

pnpx create-nx-workspace@latest --pm pnpm --style scss

The above command will prompt these questions, we recommend to use the answers bellow

  1. Where would you like to create your workspace? [YOUR_WORKSPACE_NAME]

  2. Which stack do you want to use?

    None: Configures a TypeScript/JavaScript project with minimal structure.

  3. Package-based monorepo, integrated monorepo, or standalone project?

    Package-based Monorepo: Nx makes it fast, but lets you run things your way.

upupa-cp-creator's People

Contributors

sameer-ezzo 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.