1 | [![Join the chat at https://gitter.im/formio/formio](https://badges.gitter.im/formio/formio.svg)](https://gitter.im/formio/formio?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
2 | [![StackOverflow](https://www.codewake.com/badges/codewake2.svg)](http://stackoverflow.com/tags/formio)
|
3 |
|
4 | A combined form and API platform for Serverless applications
|
5 | ===============================
|
6 | Form.io is a revolutionary combined Form and API platform for Serverless applications. This repository serves as the core Form and API engine for https://form.io. This system allows you to build "serverless" data management applications using a simple drag-and-drop form builder interface. These forms can then easily be embedded within your Angular.js and React applications using the
|
7 | ```<formio>``` HTML element.
|
8 |
|
9 | Walkthrough video and tutorial
|
10 | -------------------
|
11 | For a walkthrough tutorial on how to use this Open Source platform to build a Serverless application, watch the video [0 to M.E.A.N in 30 minutes](https://www.youtube.com/watch?v=d2gTYkPFhPI)
|
12 |
|
13 | Form Building & Rendering Demo
|
14 | -------------------
|
15 | Here is a link to a demo of the Form Building and Form Rendering capability that can be hooked into this API platform.
|
16 |
|
17 | http://codepen.io/travist/full/xVyMjo/
|
18 |
|
19 | Run with Docker Compose
|
20 | ------------------
|
21 | The fastest way to run this library locally is to use [Docker](https://docker.com).
|
22 |
|
23 | - [Install Docker](https://docs.docker.com/v17.12/install/)
|
24 | - Download and unzip this package to a local directory on your machine.
|
25 | - Open up your terminal and navigate to the unzipped folder of this library.
|
26 | - Type the following in your terminal
|
27 | ```
|
28 | npm install
|
29 | docker-compose up
|
30 | ```
|
31 | - Go to the following URL in your browser.
|
32 | ```
|
33 | http://localhost:3001
|
34 | ```
|
35 | - Use the following credentials to login.
|
36 | - **email**: admin@example.com
|
37 | - **password**: CHANGEME
|
38 | - To change the admin password.
|
39 | - Once you login, click on the **Admin** resource
|
40 | - Click **View Data**
|
41 | - Click on the **admin@example.com** row
|
42 | - Click **Edit Submission**
|
43 | - Set the password field
|
44 | - Click **Save Submission**
|
45 | - Logout
|
46 |
|
47 | - Have fun!
|
48 |
|
49 | Manual Installation (Node + MongoDB)
|
50 | -------------------
|
51 | To get started you will first need the following installed on your machine.
|
52 |
|
53 | - Node.js - https://nodejs.org/en/
|
54 | - MongoDB - http://docs.mongodb.org/manual/installation/
|
55 | - On Mac I recomment using Homebrew ```brew install mongodb```
|
56 | - On Windows, download and install the MSI package @ https://www.mongodb.org/downloads
|
57 | - You must then make sure you have MongoDB running by typing ```mongod``` in your terminal.
|
58 |
|
59 | Running with Node.js
|
60 | -------------------
|
61 | You can then download this repository, navigate to the folder in your Terminal, and then type the following.
|
62 |
|
63 | ```
|
64 | npm install
|
65 | npm start
|
66 | ```
|
67 |
|
68 | This will walk you through the installation process. When it is done, you will have a running Form.io management
|
69 | application running at the following address in your browser.
|
70 |
|
71 | ```
|
72 | http://localhost:3001
|
73 | ```
|
74 |
|
75 | The installation process will also ask if you would like to download an application. If selected, the application can be found at the following URL.
|
76 |
|
77 | ```
|
78 | http://localhost:8080
|
79 | ```
|
80 |
|
81 | You can also see the contents of the application (for modification) within the ```app``` folder which exists inside of the folder where you downloaded this repository.
|
82 |
|
83 | Development
|
84 | --------------------
|
85 | To start server with auto restart capability for development simply run this command:
|
86 | ```
|
87 | npm run start:dev
|
88 | ```
|
89 |
|
90 | Deploy to Hosted Form.io
|
91 | --------------------
|
92 | If you wish to deploy all of your forms and resources into the Form.io Hosted platform @ https://form.io, you can do this by using the Form.io CLI command line tool.
|
93 |
|
94 | ```
|
95 | npm install -g formio-cli
|
96 | ```
|
97 |
|
98 | Once you have this tool installed, you will need to follow these steps.
|
99 | - Create a new project within Form.io
|
100 | - Create an API Key within this project by going to the **Project Settings | Stage Settings | API Keys**
|
101 | - Next, you can execute the following command to deploy your local project into Hosted Form.io.
|
102 |
|
103 | ```
|
104 | formio deploy http://localhost:3001 https://{PROJECTNAME}.form.io --dst-key={APIKEY}
|
105 | ```
|
106 |
|
107 | You will need to make sure you replace ```{PROJECTNAME}``` and ```{APIKEY}``` with your new Hosted Form.io project name (found in the API url), as well as the API key that was created in the second step above.
|
108 |
|
109 | This will then ask you to log into the local Form.io server (which can be provided within the Admin resource), and then after it authenticates, it will export the project and deploy that project to the Form.io hosted form.
|
110 |
|
111 | Help
|
112 | --------------------
|
113 | We will be updating the help guides found @ https://help.form.io as questions arise and also to help you get started with Form.io.
|
114 |
|
115 | Thanks for using Form.io!
|
116 |
|
117 | The Form.io Team.
|
118 |
|
119 | Security
|
120 | =========
|
121 | If you find and/or think you have found a Security issue, please quietly disclose it to security@form.io, and give us
|
122 | sufficient time to patch the issue before disclosing it publicly.
|
123 |
|
\ | No newline at end of file |