1
0
This commit is contained in:
Michael Schramm 2020-06-03 13:27:57 +02:00
parent c38b4dcecc
commit b253917350
6 changed files with 42 additions and 29 deletions

View File

@ -13,6 +13,7 @@ LABEL maintainer="OhMyForm <admin@ohmyform.com>"
WORKDIR /usr/src/app WORKDIR /usr/src/app
COPY api/ . COPY api/ .
COPY --from=builder /usr/src/app/out /usr/src/app/public
RUN yarn install --frozen-lockfile RUN yarn install --frozen-lockfile
RUN yarn build RUN yarn build

View File

@ -1 +1 @@
web: node server.js web: node api/dist/main

View File

@ -1,5 +1,6 @@
# OhMyForm 0.9.1 ![OhMyForm](public/logo.png)
# OhMyForm 0.9.1
<!-- TODO: Code Shelter maybe. --> <!-- TODO: Code Shelter maybe. -->
<!-- [![Code Shelter](https://www.codeshelter.co/static/badges/badge-flat.svg)](https://www.codeshelter.co/) --> <!-- [![Code Shelter](https://www.codeshelter.co/static/badges/badge-flat.svg)](https://www.codeshelter.co/) -->
@ -17,7 +18,7 @@ Moving over to Discord so that I can manage things without hassle.
[![Discord](https://img.shields.io/discord/595773457862492190.svg?label=Discord%20Chat)](https://discord.gg/nWbrjtz) [![Discord](https://img.shields.io/discord/595773457862492190.svg?label=Discord%20Chat)](https://discord.gg/nWbrjtz)
> An *open source alternative to TypeForm* that can create stunning mobile-ready forms, surveys and questionnaires. > An *open source alternative to TypeForm* that can create stunning mobile-ready forms, surveys and questionnaires.
<!-- [![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/ohmyform/ohmyform/tree/production)--> [![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/ohmyform/ohmyform/tree/master)
## Table of Contents ## Table of Contents
@ -84,7 +85,7 @@ Follow documentation hosted on [OhMyForm.com](http://ohmyform.com/docs/install/)
### Code Contributors ### Code Contributors
This project exists thanks to all the people who contribute. [[Contribute](CONTRIBUTING.md)]. This project exists thanks to all the people who contribute. [[Contribute](CONTRIBUTING.md)].
<a href="https://github.com/ohmyform/ohmyform/graphs/contributors"><img src="https://opencollective.com/ohmyform-sustainability/contributors.svg?width=890&button=false" alt="Contributors" /></a> [![Contributors](https://opencollective.com/ohmyform-sustainability/contributors.svg?width=890&button=false)](https://github.com/ohmyform/ohmyform/graphs/contributors)
### Financial Contributors ### Financial Contributors
@ -92,13 +93,13 @@ Become a financial contributor and help us sustain our community. [[Contribute](
#### Individuals #### Individuals
<a href="https://opencollective.com/ohmyform-sustainability"><img src="https://opencollective.com/static/images/opencollective-og-default.png?width=890" alt="Individuals"></a> [![Individuals](https://opencollective.com/static/images/opencollective-og-default.png?width=890)](https://opencollective.com/ohmyform-sustainability)
#### Organizations #### Organizations
Support this project with your organization. Your logo will show up here with a link to your website. [[Contribute](https://opencollective.com/ohmyform-sustainability/contribute)] Support this project with your organization. Your logo will show up here with a link to your website. [[Contribute](https://opencollective.com/ohmyform-sustainability/contribute)]
<a href="https://opencollective.com/ohmyform-sustainability/organization/0/website"><img src="https://opencollective.com/ohmyform-sustainability/organization/0/avatar.svg"></a> [![](https://opencollective.com/ohmyform-sustainability/organization/0/avatar.svg)](https://opencollective.com/ohmyform-sustainability/organization/0/website)
<a href="https://opencollective.com/ohmyform-sustainability/organization/1/website"><img src="https://opencollective.com/ohmyform-sustainability/organization/1/avatar.svg"></a> [![](https://opencollective.com/ohmyform-sustainability/organization/1/avatar.svg)](https://opencollective.com/ohmyform-sustainability/organization/1/website)
<a href="https://opencollective.com/ohmyform-sustainability/organization/2/website"><img src="https://opencollective.com/ohmyform-sustainability/organization/2/avatar.svg"></a> [![](https://opencollective.com/ohmyform-sustainability/organization/2/avatar.svg)](https://opencollective.com/ohmyform-sustainability/organization/2/website)

View File

@ -3,36 +3,20 @@
"name": "ohmyform", "name": "ohmyform",
"description": "Opensource alternative to TypeForm", "description": "Opensource alternative to TypeForm",
"repository": "https://github.com/ohmyform/ohmyform", "repository": "https://github.com/ohmyform/ohmyform",
"logo": "https://raw.githubusercontent.com/ohmyform/ohmyform/master/public/modules/core/img/brand/logo.png", "logo": "https://raw.githubusercontent.com/ohmyform/ohmyform/master/public/logo.png",
"keywords": ["form", "survey"], "keywords": ["form", "survey"],
"env": { "env": {
"BASE_URL": { "BASE_URL": {
"description": "Domain name where the site will be hosted", "description": "Domain name where the site will be hosted",
"value": "ohmyform.herokuapp.com" "value": "ohmyform.herokuapp.com"
}, },
"MAILER_SERVICE_PROVIDER": { "MAILER_URI": {
"description": "Set this to any services from https://nodemailer.com/smtp/well-known/ to use a 'well-known' email provider", "description": "Set this to a uri like smtp://localhost:1025 - for more information check https://nodemailer.com/",
"value": ""
},
"MAILER_SMTP_HOST": {
"description": "Set this if you are not using a 'MAILER_SERVICE_PROVIDER'",
"value": ""
},
"MAILER_SMTP_PORT": {
"description": "Set this if you are not using a 'MAILER_SERVICE_PROVIDER'",
"value": ""
},
"MAILER_EMAIL_ID": {
"description": "Username credential of your SMTP service",
"value": ""
},
"MAILER_PASSWORD": {
"description": "Password credential of your SMTP service",
"value": "" "value": ""
}, },
"MAILER_FROM": { "MAILER_FROM": {
"description": "Email address from which signup/verifications are sent", "description": "Email address from which signup/verifications are sent",
"value": "" "value": "OhMyForm <no-reply@localhost>"
}, },
"CREATE_ADMIN": { "CREATE_ADMIN": {
"description": "Use this to automatically create an admin user on startup", "description": "Use this to automatically create an admin user on startup",
@ -67,5 +51,8 @@
{ {
"url": "heroku/nodejs" "url": "heroku/nodejs"
} }
] ],
"scripts": {
"postdeploy": "scripts/heroku/postdeploy.sh"
}
} }

View File

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 21 KiB

View File

@ -0,0 +1,24 @@
cd ui/
echo "Install UI"
yarn install --frozen-lockfile
echo "Build and Export UI"
yarn export
cd ../api
echo "Install API"
yarn install --frozen-lockfile
echo "Copy Exported UI to API"
cp -r ui/out public
yarn install
echo "Build API"
yarn build
echo "FINISHED build for UI and API"