Skip to content

Nodejs server for storing the events data into sqlite database, it can be further extended to store anything else needed in future, like for example blog posts and so on

Notifications You must be signed in to change notification settings

simov/varnalab.org-storage

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Install

For now clone this repo.

CLI

./bin/cli -h # for help

Start Server

# start the server at port 3000 and create the varnalab.sqlite file in the current directory
./bin/cli
# specify port
./bin/cli -p 8000
# specify where you want the varnalab.sqlite file to be created
./bin/cli -p 8000 -d /path/to/
# specify existing database file
./bin/cli -p 8000 -d /path/to/varnalab.sqlite

Rebuild Models

After each change to the schema the Sequelize models should be rebuilt:

npm install -g sequelize-auto sqlite3
sequelize-auto \
  --host localhost \
  --database /...PATH.../schema/varnalab.sqlite \
  --storage /...PATH.../schema/varnalab.sqlite \
  --user root \
  --pass null \
  --dialect sqlite \
  --output /...PATH.../models/

About

Nodejs server for storing the events data into sqlite database, it can be further extended to store anything else needed in future, like for example blog posts and so on

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%