Skip to content

Commit 128cd93

Browse files
committed
Create README.md
1 parent e06da8f commit 128cd93

1 file changed

Lines changed: 71 additions & 0 deletions

File tree

README.md

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
# Today
2+
3+
A simple C++ program that prints the current date in the `YY/MM/DD = Www`
4+
format.
5+
6+
*This repository serves as a minimal but complete C++ project template.*
7+
8+
## Features
9+
10+
- Minimal and complete C++23 project template
11+
- Simple and reliable build system with dependency tracking
12+
- Integrated code formatting and editor tooling support
13+
14+
## Supported Platforms
15+
16+
- macOS
17+
- Linux
18+
19+
## Getting Started
20+
21+
Download pre-built binaries from the
22+
[Release](https://github.com/aafulei/cpp-today/releases)
23+
page, or build it from source and run the program:
24+
25+
```shell
26+
make && ./bin/today
27+
```
28+
29+
Equivalently, run in one step with
30+
31+
```shell
32+
make run
33+
```
34+
35+
You will see the current date in the `YY/MM/DD = Www` format, e.g.
36+
37+
```
38+
25/05/12 = Mon
39+
```
40+
41+
## Build
42+
43+
Use `make` to build the program:
44+
45+
```shell
46+
make # build release version
47+
make run # build and run release version
48+
make debug # build debug version
49+
make clean # clean build files
50+
```
51+
52+
To list all targets and options, run `make help`.
53+
54+
## Project Structure
55+
56+
| File | Description |
57+
| ------------------------------------------ | ------------------------------------ |
58+
| [`src/today.cpp`](./src/today.cpp) | C++ source code |
59+
| [`.clang-format`](./.clang-format) | formatting config for `clang-format` |
60+
| [`.gitignore`](./.gitignore) | patterns to ignore for `git` |
61+
| [`compile_flags.txt`](./compile_flags.txt) | compile options for `clangd` |
62+
| [`Makefile`](./Makefile) | build script for `make` |
63+
| [`README.md`](./README.md) | this file |
64+
65+
## Author
66+
67+
Aaron FU Lei
68+
69+
## License
70+
71+
MIT

0 commit comments

Comments
 (0)