Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lost22git/test_happyx
test happyx
https://github.com/lost22git/test_happyx
debby docker docker-compose happyx jsony mapster nim sqlite3 static-linking zig-cc
Last synced: 9 days ago
JSON representation
test happyx
- Host: GitHub
- URL: https://github.com/lost22git/test_happyx
- Owner: lost22git
- License: mit
- Created: 2023-09-03T17:14:06.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-06T20:03:22.000Z (over 1 year ago)
- Last Synced: 2024-11-23T17:43:23.660Z (2 months ago)
- Topics: debby, docker, docker-compose, happyx, jsony, mapster, nim, sqlite3, static-linking, zig-cc
- Language: Nim
- Homepage:
- Size: 581 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# test-happyx
an example of happyx
- sqlite
- static linking
- docker multi-stage build## Installation
TODO: Write installation instructions here
## Usage
### zig cc
- write a shell script and copy to /usr/local/bin
zigcc content
```shell
#!/usr/bin/env bashzig cc $@
```
```shell
cp zigcc /usr/local/bin
```- build app with zigcc
```shell
nimble zigcc```
- run app
```shell
./bin/test_happyx_release_zigcc
```### Docker
- build docker image `test-happyx`
```shell
docker build -t test-happyx --build-arg http_proxy=$HTTP_PROXY .
```- create docker network `mnet`
```shell
docker network create -o com.docker.network.bridge.name=mnet mnet
```- run docker container `test-happyx` in network `mnet`
```shell
docker run -dit --name test-happyx --net mnet -p 5000:5000/tcp test-happyx
```### Docker compose
```shell
docker compose up -d
```## Development
TODO: Write development instructions here
## Contributing
1. Fork it ()
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request## Contributors
- [lost22git](https://github.com/lost22git) - creator and maintainer