Create a new project

The CLI tool will scaffold the project and install all the required dependencies. To create a new project, run the CLI as follows and answer the prompts

Create project with name `nodeapi`

nodpi p nodeapi

Starting the project

cd nodeapi
npm i
npm start

In a browser, visit http://localhost:2020 for api documentation

Project Folder Structure will look as follow

Project Structure

Please do changes in config.js file for admin credentials and gmail smtp credentials to send to mails

const config = {
    "dbname" : "nodpi",
    "port":2020,
    "admin_email":"admin@nodpi.com",
    "admin_password":"admin123",
    "email":"youremail@gmail.com",
    "password":"yourpassword",
    "api_url" : "http://localhost:2020/api/",
    "app_url" : "http://localhost.com:2020/"
}

module.exports = config;

Starting the project

cd nodeapi
npm i
npm start

In a browser, visit http://localhost:2020 for api documentation

Swagger API Doc

Welcome Mail

Welcome Mail

Reset Password Mail

Reset Password Mail Link

Change Password Form

Change Password Link

Last updated

Was this helpful?