1. Knowledge Base
  2. Crowdbotics App Builder

Are web and native mobile apps 'separate' apps on the Crowdbotics platform?

Building native and web applications with Crowdbotics.

Yes, any app you build with Crowdbotics will be a distinct project. You can build as many apps as your plan allows, and they can all be different kinds of applications. 

 
How can I deploy my web app onto the Crowdbotics server for hosting?
Push deploy on dashboard, and it’ll deploy the material in the Django folders automatically. 
If you're working with a separate build altogether, follow these steps:
1. Add/Create React app under root
2. in Dockerfile, add this command
RUN npm install && npm audit fix && npm run build
after line RUN pipenv install --deploy --system
3. in settings.py,
- add ‘DIRS’: [os.path.join(BASE_DIR, ‘build’)] in TEMPLATES
- make sure STATICFILES_DIRS = [os.path.join(BASE_DIR, ‘build/static’)]
- make sure STATIC_ROOT = os.path.join(BASE_DIR, ‘static’)
4. in urls.py, add below lines at the end file:
- urlpatterns += [path(‘’, TemplateView.as_view(template_name=‘index.html’))]
- urlpatterns += [
re_path(r”^(?:.*)/?$“,
TemplateView.as_view(template_name=‘index.html’))
]
 
Next, you can deploy the React web app using the Deploy button on your Crowdbotics Dashboard. The web url convention is:
https://appname-appid.botics.co/
 
You do not need to push the built web app into the repository since the web app is built on the server.