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.
- 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
The frontend for this project is available at:
https://github.com/nalin-programmer/Form-AI
Dashboard: Overview of all forms and no of submissions.
Create Form: Build forms with various question types and add images.
Opening Page: The landing page where users start their form journey.
Multi Correct Question: Example of a multiple correct answer question.
Single Correct Question: Example of a single correct answer question.
Text Question: Example of a text input question.
View Submissions: See all responses submitted for a form.
Analytics: Visualize collected data with interactive charts.
git clone <this-repo-url>
cd Form-AI-Backend
npm install
Create a .env
file in the root directory and set the values from example.env
:
docker pull redis
docker run -d --name redis -p 6379:6379 redis
minio-docker-compose -f docker
Make sure you have a
docker-compose.yml
for MinIO or use your own setup.
npm run start:dev
The API will be available at:
http://localhost:3000/api
Swagger docs:
http://localhost:3000/api/docs
MIT