Nzoni docs
  • Getting Started
  • Angular
    • Project Structure
    • Authentication, Magic Link and Google Auth
    • Landing page
    • Payments and Plans
    • Blog and articles
    • User Dashboard
    • Admin Dashboard
    • SEO & SSR
    • Deploy Angular Project
  • Nest.js
    • Project Structure
    • Authentication, Google auth and Magic link
    • Blogposts
    • Plans
    • Stripe Payment
    • Email and Templates
    • Database and Migration
    • Image File upload
    • Users
    • Deploy Nest.js project
  • Node.js/MongoDB
    • Project structure
    • API endpoints
  • Angular / Firebase / Node.js
  • Create first and default plan
  • Create an Admin User
  • Support
  • Licenses
Powered by GitBook
On this page
  • Download repositories
  • Download Angular repository
  • Download Nest.js repository
  • Download Node.js repository
  • Installation
  • Configure Environment Variables
  • Nest.js environnement
  • Angular Environnement
  • Create Tables
  • Run
  • Angular
  • Nest.js
  • Node.js/MongoDB

Getting Started

Welcome to the documentation for Nzoni Boilerplate! This guide will walk you through the setup, configuration, and usage of Nzoni, a robust SaaS boilerplate designed to accelerate your web application

NextAngular

Last updated 7 months ago

Make sure you have node v18+ and npm v10+

Download repositories

Once you've purchased Nzoni, your github email account will be added to the related projects. Make sure you're already connected to github on your cli terminal or use Github Personal access token.

Download Angular repository

git clone https://github.com/nzoni-app/nz-angular.git

Download Nest.js repository

git clone https://github.com/nzoni-app/nz-nestjs.git

Download Node.js repository

git clone https://github.com/nzoni-app/nz-nodejs-mongodb.git

Installation

Install Node.js (if you haven't already)

Install Node Modules for Angular project

Navigate to the downloaded Angular project repostiory:

cd nz-angular
npm install

Install Node Modules for Nest.js project

Navigate to the downloaded Nest.js project repostiory:

cd nz-nestjs
npm install

Configure Environment Variables

Nest.js environnement

Nest.js supports environment variables out of the box. You can set defaults in .env (for all environments), .env.development (for development), and .env.production (for production).

By default, there is the .env.example file. Rename it to .env modify variables

ENV=developpement # OR production OR stagging

# Typeorm configuration for migration
TYPEORM_CONNECTION=postgres
TYPEORM_HOST=localhost
TYPEORM_PORT=5432
TYPEORM_USERNAME=
TYPEORM_PASSWORD=
TYPEORM_DATABASE=
TYPEORM_SYNCHRONIZE=false
TYPEORM_ENTITIES=src/**/*.entity.ts
TYPEORM_MIGRATIONS_TABLE_NAME=migrations
TYPEORM_MIGRATIONS_DIR=migrations
TYPEORM_MIGRATIONS=migrations/*.ts

# MAILING
SMTP_HOST=
SMTP_PORT=
SMTP_SECURE=false
SMTP_AUTH=
SMTP_PASSWORD=
SMTP_FROM='"Support name" <support@domain.name>'
MODERATION_MAIL=
# Logs
APP_DEBUG=true
JOB_ERROR_LOG_PATH='./'
DEFAULT_LOG_PATH='./logs'

# JWT
JWT_SECRET=A/iQ2KX0auTZZBwsbPEGC8H3a78HiiL23WD4S+QAoEq34LdeJ9aPrgpHdkkTvBzJ46K2JkM4apkg414erD3S+qLvwiYk3DTorANbbkA+54tVJsXrSGsaUjGifR31OaRK98aDVgICvl60Nymo3+I6527+BOkZalZsbCPzsJ7nALyTNu9Ud2FsvfK0WpAQVOf4teoHT4R/7E7ENChmgHRvI/TWumKfWcyr//Q7b9bLipFivk0EDzkpApdaEsClxE7JjT33aZhMvtuvLn5mQF3L5/ubGs5ZZy+nk4AyhR1DBTYjBYzKoamf94JW3BPobg5heH8gGnNoA+5l3WOJA7uvzw==
JWT_EXPIRATION=192h # 3 days

# FONT_END_URL
FRONT_END_URL=

#GOOGLE
GOOGLE_CLIENT_ID=
GOOGLE_APPLICATION_CREDENTIALS=google-service.json

#STRIPE
STRIPE_SECRET_KEY=
STRIPE_WEBHOOK_SECRET=

#TRIAL PERIOD IF EXIST
TRIAL_DAYS=

Angular Environnement

Edit src/environments/environnement.ts

export const environment = {
        // GOOGLE AUTH
        google_client_id:
        // GOOGLE TAG for ANALYTICS
        google_tag_id:
}

Create Tables

To set up the required tables, navigate to the downloaded Nest.js project repostiory and run the following command:

npx ts-node ./node_modules/.bin/typeorm  migration:run -d ./datasource.ts

Run

Angular

To start Angular project, simply run:

ng serve

Nest.js

To start Nest.js project, simply run:

npm run start:dev

Node.js/MongoDB

Run the following command to start the server:

npm run start

Congratulations! Your Nzoni project is now running!

If you haven't installed Node.js yet, you can follow the instructions .

Angular instance is now running at .

Nest.js instance is now running at .

Node.js instance is now running at .

here
http://localhost:4200/
http://localhost:3000/
http://localhost:3000/

Angular/Nest.js/PostgreSQL
Angular/Node.js/MongoDB
Angular / Firebase / Node.js