oxesoft / nim-web-backend-sample-stack

Nim Web Backend Sample Stack

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nim Web Backend Sample Stack

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.

Notes

  1. This sample code uses SQLite as database backend however Norm also supports PostgreSQL;
  2. Using this project as starting point absolutely not exempt you of reading all of the material that you can before start coding using Nim;
  3. VSCode is the suggested code editor. You just need to install the extension from the Marketplace.

Setup

  1. Follow the official instructions for installing Nim;
  2. Run nimble build;
  3. Define an environment variable DATABASE_URL pointing to a file to be created (our SQLite database);
  4. Call ./backend and open in your browser the URL shown at the console.

About

Nim Web Backend Sample Stack


Languages

Language:Nim 52.2%Language:HTML 47.8%