Currently, to successfully install this app you will need to:
- Create a folder the following folder: C:\walkthrough or change the installService.js and uninstallService.js later on
- Clone this repository into whatever folder you decided above
- Create a Clerk account and create an app
- When setting up Clerk configure as follows:
- disable Email Address and Username
- Require Name
- Use Microsoft as a SSO connection
- For Clerk, you will need your apps API keys:
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY
CLERK_SECRET_KEY
- Install MongoDB, MongoShell, and follow the setup
- MongoDB will need a user to write to a database called
Logsmake sure to save these for later User Creation Instructions. For example, have an admin accoount and a user DataEntry that only hasreadWriteaccess toLogs - Node installed and restart OS
- Open admin level command line and in the main folder with
nestjs-back-endandnext-front-endrun:
corepack enable pnpm
corepack use pnpm@latest
pnpm install -r -w- Install nestjs-back-end:
- You will need the MongoDB user name and password you created earlier
- Create a
.envfile innestjs-back-endand create the following keys:
DOMAIN=<address of Next server> ie http://<ip-address or server name>/
CLERK_PUBLISHABLE_KEY=key(starts with pk)
CLERK_SECRET_KEY=key(starts with sk)
MONGO_URI="mongodb://<user>:<password>@127.0.0.1:27017/?authMechanism=DEFAULT"
MONGO_DEBUG=false
- In the next-front-end folder create a
.env.localfile - In the
.env.localthe following variables need to be created:
NEXT_PUBLIC_API_URL=http://<server name or ip address>:8000/api/
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY (starts with pk)
CLERK_SECRET_KEY (starts with sk)
NEXT_PUBLIC_CLERK_SIGN_IN_URL=/sign-in
NEXT_PUBLIC_CLERK_SIGN_UP_URL=/sign-up
NEXT_PUBLIC_CLERK_SIGN_UP_FORCE_REDIRECT_URL=/back-end/sign-up
- In an admin commandline console, navigate the nestjs-back-end folder:
pnpm build- Copy the
.envinto dist then in admin console:
node installService.js-
Navigate to next-front-end and run the doploy.ps1 powershell script. I recommend looking through it and changing it how you like.
-
Server should be up and running