Skip to content

nalin-programmer/Form-AI-Backend

Repository files navigation

Form-AI Backend

This is the backend service for Form-AI, a dynamic, AI-powered form platform.
It is built with NestJS, uses MongoDB for storage, Redis for caching, and MinIO for file storage.


Features

  • RESTful API for forms and responses
  • File upload and download via MinIO
  • Swagger API documentation (/api/docs)
  • CORS enabled for local frontend development
  • Dockerized Redis and MinIO support

Frontend

The frontend for this project is available at:
https://github.com/nalin-programmer/Form-AI


Screenshots

Dashboard

Dashboard: Overview of all forms and no of submissions.

Create Form

Create Form: Build forms with various question types and add images.

Opening Page

Opening Page: The landing page where users start their form journey.

Multi Correct Question

Multi Correct Question: Example of a multiple correct answer question.

Single Correct Question

Single Correct Question: Example of a single correct answer question.

Text Question

Text Question: Example of a text input question.

View Submissions

View Submissions: See all responses submitted for a form.

Analytics

Analytics: Visualize collected data with interactive charts.

Getting Started

1. Clone the repository

git clone <this-repo-url>
cd Form-AI-Backend

2. Install dependencies

npm install

3. Environment Variables

Create a .env file in the root directory and set the values from example.env:


Running Services

Redis (Docker)

docker pull redis
docker run -d --name redis -p 6379:6379 redis

MinIO (Docker Compose)

minio-docker-compose -f docker

Make sure you have a docker-compose.yml for MinIO or use your own setup.


Running the Backend

npm run start:dev

The API will be available at:
http://localhost:3000/api

Swagger docs:
http://localhost:3000/api/docs


License

MIT

About

This is the backend service for Form-AI, a dynamic, AI-powered form platform. It is built with NestJS, uses MongoDB for storage, Redis for caching, and MinIO for file storage.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors