Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pedrobslisboa/full-stack-reasonml-country-select
https://github.com/pedrobslisboa/full-stack-reasonml-country-select
Last synced: 26 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/pedrobslisboa/full-stack-reasonml-country-select
- Owner: pedrobslisboa
- Created: 2024-03-22T12:47:57.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-04-08T19:37:05.000Z (9 months ago)
- Last Synced: 2024-10-29T18:23:59.486Z (2 months ago)
- Language: Reason
- Size: 147 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Fullstack Reasonml Country Select
## Table of Contents
- [Introduction](#introduction)
- [Installation](#installation)
- [Usage](#usage)
- [License](#license)
- [Improvements](#improvements)## Introduction
This is a simple country select component built with Reasonml and React. It uses the [gist API](https://gist.githubusercontent.com/pedrobslisboa/1a6af944bc5f70067018df6f0ab30263/raw/f987794a5be8bb40bb92595f615024a59123a6dc/country-list-population.json) to fetch the list of countries.
It work as a sample project to show how to build a simple component with Reasonml and React, with a native Reasonml server.
This project uses the following main libraries:
- reasnml
- reason-react
- server-reason-react
- melange## Installation
```sh
Make install
```With docker:
```sh
Make docker-build
```## Usage
```sh
Make run
```With docker:
```sh
Make docker-run
```## License
MIT
## Improvements
- Increase test coverage.
- Test custom hooks with proper testing library.
- Increase custom Bindings.
- Usage of UniversalPortal for the Select dropdown, avoiding problems with z-index and overflow.
- CSS modules or Styled components for better styling. (Maybe styled-ppx)
- Better error handling on server side.
- Virtualized more flexible.