https://github.com/natserract/simple-dropdown
Build simple dropdown menu with React, JSON Server
https://github.com/natserract/simple-dropdown
jsonserver react reactdropdown typescript
Last synced: 2 months ago
JSON representation
Build simple dropdown menu with React, JSON Server
- Host: GitHub
- URL: https://github.com/natserract/simple-dropdown
- Owner: natserract
- Created: 2020-03-14T03:56:38.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T10:07:34.000Z (over 2 years ago)
- Last Synced: 2025-02-09T18:43:33.957Z (4 months ago)
- Topics: jsonserver, react, reactdropdown, typescript
- Language: TypeScript
- Homepage:
- Size: 8.74 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 27
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Up & Running
## Installation
1. Clone/download repo
2. `yarn install` (or `npm install` for npm)## Setup REST API
First you need to install [JSON-Server](https://github.com/typicode/json-server) Its full fake REST API and easy to use for mock data from backend. You can also CRUD data from Postman or Insomnia.```shell
# To instal JSON server
$ npm install -g json-server# run JSON Server
$ json-server database.json# Now JSON server is running
```### Running Frontend
**Development**
`yarn run start-dev`
* Build app continuously (HMR enabled)
* App served @ `http://localhost:8080`**Production**
`yarn run start-prod`
* Build app once (HMR disabled) to `/dist/`
* App served @ `http://localhost:3000`