- install node (17 was used, 16/LTS was tested only for
dist/server.js
- clone the repository (and cd to s2022)
git clone https://github.com/ghaskins99/s2022.git
- install dependencies
npm i
- first-time setup the database
npm run migrate:up
- WARN (Windows): make sure the path to the directory (
s2022
) doesn't contain any 'space' characters (as far as I know, that is the issue; ex.new folder (3)\s2022
will cause MikroORM to fail to find entities)
- WARN (Windows): make sure the path to the directory (
npm run seed
to add a few sample items
- run the server!
npm run dev
for less typing, ornpm run compile
&node ./dist/server.js
- make requests
- sample requests, see
/sample_requests
- curl, powershell, postman, insomnia
- visit the browser @ http://localhost:8000/api/inventory (to list all items)
- other methods such as creating an item don't have a browser UI, this is how I interpeted the challenge
- sample requests, see
-
Notifications
You must be signed in to change notification settings - Fork 0
ghaskins99/s2022
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published