/
Project Structure
Project Structure
Github Link - Birth-Registration
If you are starting fresh then first create react app and create following project structure.
Create a new React app by using these commands. -
npx create-react-app my-app
cd my-app
npm start
project structure
Create project Structure for Birth-registration Module:-
Go to micro-ui--internals → packages → modules. Inside the module, create a folder and give the name of service e.g:- service name is birth-registration then create folder br (you can give any name).
After creating br will add the package.json into a created folder where we mention the module name
and other dependencies.
{
"name": "@egovernments/digit-ui-module-br",
"version": "1.5.4",
"license": "MIT",
"description": "Birth Registration Module",
"main": "dist/index.js",
"module": "dist/index.modern.js",
"source": "src/Module.js",
"files": [
"dist"
],
"scripts": {
"start": "microbundle-crl watch --no-compress --format modern,cjs",
"build": "microbundle-crl --no-compress --format modern,cjs",
"prepublish": "yarn build"
},
"peerDependencies": {