This repo is the frontend of Rivercare project.
For more information, please refer to the following documents:
Please use following command to install dependencies:
npm install
- Configure environment variables. Copy contents of
./env.example
into a new file./env.local
in the root directory. - Setup backend server from Rivercare backend repo. The server should be running on http://localhost:8080.
- To abide by the Content Security Policy (CSP) setting, enable API request to local backend server by adding following
rewrites()
rule in the./next.config.js
file:... async rewrites() { return [ { source: "/api/:path*", destination: "http://localhost:8080/api/:path*" // Proxy to Backend } ] }, ...
- Start the development server.
npm run dev
- Open
http://localhost:3000
in your brower.