This project aims to speed up the development of a web backend written in Nim using Prologue + Norm, with the more common needs addressed. Both the Web Framework and ORM chosen are the most popular at the time of this implementation.
- This sample code uses SQLite as database backend however Norm also supports PostgreSQL;
- Using this project as starting point absolutely not exempt you of reading all of the material that you can before start coding using Nim;
- VSCode is the suggested code editor. You just need to install the extension from the Marketplace.
- Follow the official instructions for installing Nim;
- Run
nimble build
; - Define an environment variable DATABASE_URL pointing to a file to be created (our SQLite database);
- Call
./backend
and open in your browser the URL shown at the console.