frontend service of dhammanava search system
Make sure you have the following tools installed on your machine:
- Node.js (v16 or higher)
- yarn (if you have npm delete
yarn.lock
)
to run this project locally simply open your terminal and type
- Install dependencies (depends on your prefer package manager)
yarn
or
npm install
- Start development server
yarn run dev
or
npm run dev
This project use docker to build and containerize every service however if you want to build this project you can run
yarn build
or
npm run build
Then you will get a dist
directory, you can run a server and point the request to this directory to access the server e.g. start nginx server and pass the request to this directory
Alternatively, to quickly view the result of build you can run
yarn preview
or
npm run preview
Build Tools : Vite
Framework : React Typescript
Package manager : yarn
UI Framework : Chakra UI
Rich Text editor : Tiptap
.
├── deploy/nginx # nginx service used in deploy process to point to dist directory
├── dist # Complie files
├── public # Public directory
├── src # Source files
├── components # Components directory
├── constant # Constant directory
├── functions # Functions directory
├── hook # Custom hook directory
├── models # Data model directory
├── pages # Pages directory
├── service # Service directory (call backend services)
├── theme # Theme directory (styled Chakra UI)
├── App.tsx
├── index.tsx
├── package.json # Package files
├── yarn.lock # Lock file for package
├── Dockerfile # Docker file use to build docker image
└── README.md