Simple forms service frontend
Find a file
Vyacheslav 9728cfee1e super
2024-09-21 10:55:04 +03:00
public project base 2024-08-20 15:50:36 +03:00
src super 2024-09-21 10:55:04 +03:00
.env.example navbar toggle && profile base 2024-08-24 09:58:35 +03:00
.gitignore project base 2024-08-20 15:50:36 +03:00
.prettierrc.json base for view && base for scale question type 2024-08-20 21:39:20 +03:00
env.d.ts project base 2024-08-20 15:50:36 +03:00
index.html base for view && base for scale question type 2024-08-20 21:39:20 +03:00
LICENSE Create LICENSE 2024-08-30 19:26:39 +03:00
package.json more question types creation support && made questions prototypes draggable 2024-09-07 22:17:11 +03:00
README.md real http methods support in form edit 2024-09-12 13:15:12 +03:00
tsconfig.app.json base for view && base for scale question type 2024-08-20 21:39:20 +03:00
tsconfig.json project base 2024-08-20 15:50:36 +03:00
tsconfig.node.json project base 2024-08-20 15:50:36 +03:00
vite.config.ts base for view && base for scale question type 2024-08-20 21:39:20 +03:00
yarn.lock elements preview 2024-09-08 12:23:01 +03:00

Formaptix Web

This repository contains the source code for the Formaptix Web, as well as a short tutorial on how to run it on the server yourself.

Guide

Preparing

  • You need to install git to clone the project. You can find a simple guide here.
  • Set up and run the Formaptix Server. You can find a guide in the Formaptix Server repository.
  • Install Node.js®. You can find instructions here.

Clone Formaptix frontend using the following command:

git clone https://github.com/grey-cat-1908/formaptix-web.git

Configuring

You can configure nearly everything by setting up the following Enviroment Variables:

Variable Description Value
VITE_APP_NAME You can specify an app name to be displayed in the header and other parts of the website. Formaptix (default)
VITE_API_URL You MUST specify Formaptix server url required

To specify all the enviroment variables you can create .env file. You can find .env file example here.

Building

To build project, you should go to the Formaptix Web directory and run the following commands:

yarn
yarn build

Hosting

You can host a built Formaptix frontend almost anywhere. You just need to host the `build' folder.

I can recommend using something like NGINX or Apache. Or just deploy it using CloudFlare Pages (or some alternative).


Note

  1. Although the README file is written in English, the site itself currently supports only Russian. There are plans to create website localization in the future.
  2. If you suddenly decide to use the project even though you are not from Russia, you will still have to accept the existence of support for local validators (SNILS and TIN).
  3. If you are from Russia, CloudFlare Pages may not work properly (*.pages.dev may be blocked). You should use an alternative or wait for the release of GitVerse Pages. Or just use a custom domain.

Help

If you have any questions or want to get involved in the project in any way, you can use all GitHub instruments (Issues and Pull Requests) or just email me at email.

Acknowledgements

Thanks to my friend Vyacheslav (flyare) for help with frontend and layout design.

License

Distributed under the terms of the MIT License.