https://github.com/amkjs/amk
Simple backend example using Node.js and Express.js
https://github.com/amkjs/amk
amkjs api async-await express-js
Last synced: about 1 month ago
JSON representation
Simple backend example using Node.js and Express.js
- Host: GitHub
- URL: https://github.com/amkjs/amk
- Owner: amkjs
- License: apache-2.0
- Created: 2016-11-27T10:59:52.000Z (over 8 years ago)
- Default Branch: main
- Last Pushed: 2024-10-19T11:30:19.000Z (8 months ago)
- Last Synced: 2025-03-12T03:01:54.177Z (3 months ago)
- Topics: amkjs, api, async-await, express-js
- Language: JavaScript
- Homepage:
- Size: 152 KB
- Stars: 6
- Watchers: 1
- Forks: 2
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AMK
sample backend using express.js, knex.js, and amk plugins
## Pre-requisites:
- node.js## How to run
1. install dependencies `npm install`
2. copy `.env.example` to `.env` and update the values'
3. run the app `npm start`
4. call the api endpoint `curll http://localhost:3000/persons`## Initialize DB and seed data
1. run `npm run migrate`
2. run `npm run seed`
3. refer to `knexfile.js` for other configuration## Tests
1. make sure dependencies are installed
2. run `npm test`## License
[Apache-2.0](http://www.apache.org/licenses/LICENSE-2.0)