|
1 |
| -# Getting started - Front end setup with HTML and CSS |
| 1 | +# Getting started |
2 | 2 |
|
3 | 3 | In this section, we will start by setting up the face of our OctoFit application by building the front end page. To do that, we will keep it as simple as possible for now. We need resources like HTML and CSS to start decorating first, and we will later modify the page to extend the functionalities.
|
4 | 4 |
|
5 |
| -## Goals/Outcome |
| 5 | +> TIP: One challenging thing about GitHub Copilot is that it is very generative. Thus, it is hard to make a consistent, repeatable tutorial unless you try to keep it simple and very progressive. |
6 | 6 |
|
7 |
| -- Understand the basic strategies around designing the OctoFit app by asking GitHub Copilot Chat |
8 |
| -- Start getting the feel for OctoFit app by generating HTML and CSS resources |
9 |
| -- See a front-end page with a greeting message |
| 7 | +## Explain to GitHub Copilot the goals and steps |
10 | 8 |
|
11 |
| - |
| 9 | +It is important to lay out a plan and provide details |
12 | 10 |
|
13 |
| -Let’s start with the basic front end development with the help of GitHub Copilot. Although we can start using the built-in in-file Copilot suggestion, we will initiate this by using GitHub Copilot Chat. |
| 11 | +```text |
| 12 | +I want to build an OctoFit Tracker app that will include the following: |
14 | 13 |
|
15 |
| -After you open the GitHub Copilot Chat panel, please type the following prompt. |
| 14 | +* User authentication and profiles |
| 15 | +* Activity logging and tracking |
| 16 | +* Team creation and management |
| 17 | +* Competitive leader boards |
| 18 | +* Personalized workout suggestions in one app |
16 | 19 |
|
17 |
| -`I have this great idea called the OctoFit app. Can you show me the outline for how to get started? Please ignore technology stacks for now.` |
| 20 | +I want to use React.js for the frontend. I want to use Python with Django REST Framework for the backend and Mongo DB as the database to store data. |
18 | 21 |
|
19 |
| - |
| 22 | +Create the frontend and backend in the octofit-tracker directory of this repository |
20 | 23 |
|
21 |
| -The reason why I asked to ignore technology stack is because I want to keep it super simple. If we did not add that, what you will likely see is that some users will get code examples, while some others don’t, etc. |
| 24 | +the octofit-tracker/backend directory will store the django app with no subdirectories |
22 | 25 |
|
23 |
| -> TIP: One challenging thing about GitHub Copilot is that it is very generative. Thus, it is hard to make a consistent, repeatable tutorial unless you try to keep it simple and very progressive. |
24 |
| -Once you get the result, try to read to see how you can approach creating our fitness application. Your result still might look different from mine, and that is perfectly okay! |
| 26 | +the octofit-tracker/frontend directory will store the react app with no subdirectories |
| 27 | +
|
| 28 | +Use a Python virtual environment and install all python dependencies from file octofit-tracker/requirements.txt in this workspace |
25 | 29 |
|
26 |
| -Once you get the result, try to read to see how you can approach creating our fitness application. Your result still might look different from mine, and that is perfectly okay! |
| 30 | +The octofit-tracker/requirements.txt already contains all Django requirements. Django, djongo, sqlparse |
27 | 31 |
|
28 |
| -Now, let’s move onto the next prompt through GitHub Copilot Chat. This time, we want to generate some assets to create our web pages. HTML, which stands for Hyper Text Markup Language, is the language of the web, though it is not exactly a programming language, and CSS, which stands for Cascading Style Sheet, is the web language for the design. Thus, we will ask to generate these two. Let’s proceed with the following prompts. |
| 32 | +Layout the directory structure with no redundant backend and frontend subdirectories |
29 | 33 |
|
30 |
| -`Now, how can I add HTML and CSS on these?` |
| 34 | +Use bootstrap for the frontend |
31 | 35 |
|
32 |
| - |
| 36 | +Let's think about this step by step |
33 | 37 |
|
34 |
| - |
| 38 | +Important to avoid using public code and we do NOT need to initialize the git repository |
| 39 | +``` |
35 | 40 |
|
36 |
| -As you can see, this prompt will generate some examples of HTML and CSS lines that you can use. Again, your result might look different from mine, and that is perfectly okay! |
| 41 | + |
37 | 42 |
|
| 43 | + |
38 | 44 |
|
| 45 | + |
39 | 46 |
|
| 47 | +[Back :: Previous: Prerequisites and development environment setup](../2_Prerequisites) | [Next :: MongoDB install and setup - ](../4_MongoDBInstallSetup) |
0 commit comments