KO
|
EN
gitlite — search
Search
#python
#java
#python3
#arduino
#golang
#machine-learning
#rust
#html
#flask
#javascript
#seismology
#nodejs
nim-api-boilerplate
★ 10
Open GitHub ↗
No description available.
Download README (.md)
Explore Similar Repositories
contextual
:
A simple sample app using the React 16 Context API.
ArchBenchSuite
:
low level kernels to benchmark peak compute, cache bandwidth on various levels, memory bandwidth, and some basic compute routines
tinyhttp
:
简单易用的http server封装类
bgp-full-table-generator
:
Dockerised BGP Full Table generator
mvpsample
:
No description available.
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
nim-api-boilerplate
?
Download (.md)
# Mofuw(Nim) API Boilerplate use Nim with mofuw ```bash $ nimble install mofuw $ nimble install dotenv $ nimble install jwt $ cp .env.default .env $ sh setup.sh YOUR_PROJECT_NAME # change project name $ nimble server # start server ``` ## Design pattern Implementing Domain-Driven-Design(Eric's Layered architecture) ## Directory ```bash /docs # PostMan collection /src | | - /nim_web_apipkg | | - nim_web_api.nim | - /applications # Request handlers | - /domains # Action domains | - /gateways # Thirdparty action gateways | - /models # DB Models | - /utils # Utility actions # ...etc... ``` ## Endpoints - POST - `/api/register` (name, mail_address, password) - POST - `/api/signin` (mail_address, password) returns JWT token. - POST - `/api/me` Set JWT-token to Bearer.