{% extends "WebApp/app_base.html" %} {% load static %} {% block title %}SERVIR AppTemplate - Home{% endblock %} {% block script %} {% endblock %} {% block content %}
Overview

Using this app template to create your web application can save a significant amount of time and effort in the development process. The template includes many of the common features and functionality needed for data driven web applications. It also offers a responsive design that’s suitable for all kinds of devices. Overall, using this template can be an efficient and cost-effective way to build a web application that is functional and visually appealing.

Code structure in the template repository

This application is based on the Django framework. The folder structure is as follows:

  • /SERVIR_AppTemplate - Main “project” folder. This folder name is determined when you initiate your project, using the django-admin startproject [project_name] command in python. This command creates the folder and the configuration files for the entire project.
  • /WebApp - This is the main application in our project. A project may contain multiple applications. An application is initialized by running the command python manage.py startapp [app_name] from your main folder. Each application folder contains its own folder structure to host the code and files particular to that application.
  • /staticfiles - This folder contains static files that are common to all applications in the project, for example logos and stylesheets.
  • /templates - Under this folder, you will find subfolders for each one of the applications used in the project, containing the html template files used in the different pages if the app.
Process

To customize and launch an application based on this template you will need to:

  • Clone and run the AppTemplate2022 - this will give you the opportunity to see the look and feel of the application. You will also be able to view the project structure and all of the template code. At this stage you should start to think about which features would be useful in your specific application.
  • Start a new project - This will allow you to have a unique project name that fits your purpose.
  • Copy the key directories into your new project - Copy the WebApp and templates directories from the AppTemplate2022 folder into your new project.
  • Modify the code - This way you can use just the features your application needs and connect your data to the application.
  • Create your own github repo for your application - You can push updates for version control as well as make it easier to get assistance when needed.
  • Publish your application to a web server.

Detailed instructions for each step of the process will be found in the GitHub repository for this template.

{% endblock %}