Skip to content

Commit

Permalink
Merge pull request #20 from coding-cpp/fix/18
Browse files Browse the repository at this point in the history
cross compiler compatibility
  • Loading branch information
Jadit19 authored Aug 23, 2024
2 parents 330759b + 30740da commit 1d5f506
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 8 deletions.
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ project(expresso VERSION 0.1.2)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_CXX_STANDARD_REQUIRED TRUE)
set(CMAKE_CXX_COMPILER "g++")

if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release
Expand Down
31 changes: 25 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,40 @@ It is pretty straightforward and if you are familiar with the Express.js framewo

## Installation 🚀

0. Make sure you have the gnu g++ compiler installed on your system. You can install it by running the following command:
0. Make sure you have the a c++ compiler (such as [g++](https://gcc.gnu.org/) or [clang](https://clang.llvm.org/)) installed on your system.

<details>
<summary>Install g++</summary>

```bash
sudo apt install g++
```
</details>

<details>
<summary>Install clang</summary>

```bash
sudo apt install clang
```
</details>
<br />

1. Install the make utilities to build the binary:

```bash
sudo apt-get install g++ build-essential
sudo apt install cmake make
```

1. Clone the repository:
2. Clone the repository:

```bash
git clone --recurse-submodules [email protected]:coding-cpp/expresso.git
```

2. Make a `.env` file in the root directory of the project and add the environment variables present in the [`.env.sample`](./.env.sample) file in it.
3. Make a `.env` file in the root directory of the project and add the environment variables present in the [`.env.sample`](./.env.sample) file in it.

3. Build the project:
4. Build the project:

```bash
cd expresso
Expand All @@ -36,7 +55,7 @@ make

![Building](./assets/github/build.png)

4. Run the server:
5. Run the server:

```bash
./server
Expand Down
2 changes: 1 addition & 1 deletion assets/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<a href="https://github.com/coding-cpp/expresso" target="_blank"
>expresso</a
>, a backend framework written in pure C++ 20 without the use of any
external libraries at all (well, obviously except for the standard g++
external libraries at all (well, obviously except for the standard c++
library).
</div>
<div>Expresso version running: <i></i></div>
Expand Down

0 comments on commit 1d5f506

Please sign in to comment.