UNPKG

5.05 kBMarkdownView Raw
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
4A combined form and API platform for Serverless applications
5===============================
6Form.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
9Walkthrough video and tutorial
10-------------------
11For 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
13Form Building & Rendering Demo
14-------------------
15Here is a link to a demo of the Form Building and Form Rendering capability that can be hooked into this API platform.
16
17http://codepen.io/travist/full/xVyMjo/
18
19Run with Docker Compose
20------------------
21The 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
49Manual Installation (Node + MongoDB)
50-------------------
51To 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
59Running with Node.js
60-------------------
61You can then download this repository, navigate to the folder in your Terminal, and then type the following.
62
63```
64npm install
65npm start
66```
67
68This will walk you through the installation process. When it is done, you will have a running Form.io management
69application running at the following address in your browser.
70
71```
72http://localhost:3001
73```
74
75The 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```
78http://localhost:8080
79```
80
81You 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
83Development
84--------------------
85To start server with auto restart capability for development simply run this command:
86```
87npm run start:dev
88```
89
90Deploy to Hosted Form.io
91--------------------
92If 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```
95npm install -g formio-cli
96```
97
98Once 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```
104formio deploy http://localhost:3001 https://{PROJECTNAME}.form.io --dst-key={APIKEY}
105```
106
107You 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
109This 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
111Help
112--------------------
113We 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
115Thanks for using Form.io!
116
117The Form.io Team.
118
119Security
120=========
121If you find and/or think you have found a Security issue, please quietly disclose it to security@form.io, and give us
122sufficient time to patch the issue before disclosing it publicly.
123
\No newline at end of file