Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/devmnj/express-node-rest-api-sqlite
Express-Node REST API using knexjs ORM and SQLite database
https://github.com/devmnj/express-node-rest-api-sqlite
api-rest database expressjs knexjs nodejs orm restful-api sql-server sqlite3
Last synced: 9 days ago
JSON representation
Express-Node REST API using knexjs ORM and SQLite database
- Host: GitHub
- URL: https://github.com/devmnj/express-node-rest-api-sqlite
- Owner: devmnj
- Created: 2021-01-15T16:35:17.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-01-15T16:52:44.000Z (about 4 years ago)
- Last Synced: 2024-11-15T23:27:10.311Z (2 months ago)
- Topics: api-rest, database, expressjs, knexjs, nodejs, orm, restful-api, sql-server, sqlite3
- Language: JavaScript
- Homepage: http://developerm.dev
- Size: 21.1 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
## About
This is a Sqlite-Express API using Knex [ORM].The migrations tools can be used to create database table as follows### Create knex file
This process is already performed for this project
```npx knex init```### Create the migration file
This process is already performed for this project
```npx knex migrate:make create-table-name```### Run migration
To create the data tables (in the data folder) and database , we can simply run the file.
```npx knex migrate:latest```## Updating the tables
To recreate the tables `delete` the sqlite file in the data folder and run the `npx knex migrate:lates` which will recreate the database and tablesFor more guides and tutorials visit my [blog](http://developermblog.wordpress.com)