https://github.com/lore/lore-hook-tutorial
Code for the tutorial for creating a custom hook for Lore
https://github.com/lore/lore-hook-tutorial
Last synced: about 1 year ago
JSON representation
Code for the tutorial for creating a custom hook for Lore
- Host: GitHub
- URL: https://github.com/lore/lore-hook-tutorial
- Owner: lore
- Created: 2017-02-18T09:04:32.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-25T06:18:47.000Z (about 9 years ago)
- Last Synced: 2025-01-21T08:07:35.733Z (about 1 year ago)
- Language: JavaScript
- Size: 70.3 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# lore-hook-tutorial
This is the code for the [Custom Hook Tutorial](http://master.lorejs.org/concepts/hooks/tutorial/overview/) for Lore.
### Install the Dependencies
First install the dependencies:
```sh
npm install
```
### Start the API Server
Just like the Quickstart, this project uses `json-server` to provide a real API interface. Run this to command
to start the server:
```sh
npm run server
```
Once the server is running, you should be able to navigate to `http://localhost:1337` and see a list of API endpoints.
### Build the Project
Finally, run this command to build the project and start the development server:
```sh
npm start
```
Once the project is built, open a web browser and visit `http://localhost:3000`.