An open API service indexing awesome lists of open source software.

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

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`.