https://github.com/codespede/pwoli-express-sample
A sample express app which uses Pwoli to show users how it works
https://github.com/codespede/pwoli-express-sample
Last synced: 6 months ago
JSON representation
A sample express app which uses Pwoli to show users how it works
- Host: GitHub
- URL: https://github.com/codespede/pwoli-express-sample
- Owner: codespede
- Created: 2021-11-08T19:34:38.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-09-27T05:01:53.000Z (over 3 years ago)
- Last Synced: 2025-01-05T23:12:26.847Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 144 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pwoli with Express.js Sample Application
A sample Express.js app which uses Pwoli to show users how it works
## Try it out
Easiest way is to clone this repo into your local:
```
git clone https://github.com/internetmango/pwoli-express-sample.git
# cd into the directory
npm install
```
- Provide your DB credentials in the file config/config.json
- Initialize the DB with tables
```
node --experimental-json-modules dbinit.mjs
```
- For adding some seed data(dummy data) to the tables, please run:
```
sequelize db:seed:all
```
- Run the app
```
npm start
```
Point your browser to http://localhost:4000/items/list and you should see a page with a `GridView` where you can do CRUD operations for the items.
Point your browser to http://localhost:4000/items/api to see the RESTful API features mentioned in https://internetmango.github.io/pwoli/rest-api