You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/livecodes/templates/starter/markdown-starter.ts
+71-29Lines changed: 71 additions & 29 deletions
Original file line number
Diff line number
Diff line change
@@ -17,61 +17,106 @@ One Paragraph of project description goes here
17
17
18
18
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
19
19
20
-
### Prerequisites
20
+
### Installation
21
21
22
-
What things you need to install the software and how to install them
22
+
Make sure you have \`python 3.10+\` and \`pip\` installed. Then run:
23
23
24
+
\`\`\`bash
25
+
pip install -r requirements.txt
26
+
cp .env.example .env
27
+
python manage.py migrate
24
28
\`\`\`
25
-
Give examples
29
+
30
+
Start the development server on \`localhost:8000\`:
31
+
32
+
\`\`\`bash
33
+
python manage.py runserver
26
34
\`\`\`
27
35
28
-
### Installing
36
+
### Usage
29
37
30
-
A step by step series of examples that tell you how to get a development env running
38
+
Give an example of getting some data out of the system or using it for a little demo
31
39
32
-
Say what the step will be
40
+
\`\`\`python
41
+
from project_name import Client
33
42
34
-
\`\`\`
35
-
Give the example
43
+
client = Client(api_key="your-api-key")
44
+
resources = client.resources.list(limit=10)
45
+
46
+
for resource in resources:
47
+
print(f"{resource.id}: {resource.name}")
36
48
\`\`\`
37
49
38
-
And repeat
50
+
You can also use the \`--verbose\` flag for detailed output:
39
51
40
-
\`\`\`
41
-
until finished
52
+
\`\`\`bash
53
+
python main.py --verbose
42
54
\`\`\`
43
55
44
-
End with an example of getting some data out of the system or using it for a little demo
56
+
### Frontend Integration
45
57
46
-
## Running the tests
58
+
The API returns \`JSON\` responses that can be consumed by any frontend:
47
59
48
-
Explain how to run the automated tests for this system
60
+
\`\`\`js
61
+
const res = await fetch('http://localhost:8000/api/resources');
62
+
const data = await res.json();
63
+
console.log(data);
64
+
\`\`\`
49
65
50
-
### Break down into end to end tests
66
+
## Overview
51
67
52
-
Explain what these tests test and why
68
+
A high-level look at how the system fits together. The \`Core API\` handles all business logic.
53
69
70
+
\`\`\`mermaid
71
+
graph TD
72
+
A[Client] -->|Request| B[API Gateway]
73
+
B --> C[Auth Service]
74
+
B --> D[Core API]
75
+
D --> E[(Database)]
76
+
D --> F[(Cache)]
54
77
\`\`\`
55
-
Give an example
78
+
79
+
## Running the tests
80
+
81
+
Run the full test suite with \`pytest\`:
82
+
83
+
\`\`\`bash
84
+
pytest --cov=project_name tests/
56
85
\`\`\`
57
86
58
-
### And coding style tests
87
+
### End to end tests
59
88
60
-
Explain what these tests test and why
89
+
These tests verify the full request lifecycle from \`Client\` to \`Database\` and back.
0 commit comments