A web application for informing people about local Nigerian laws.
- Interactive chatbot interface
- Multi-language support
- State/region selection
- Modern web interface built with React
- Webpack bundling for development and production
Compatriots/
├── src/ # Source code
│ ├── components/ # React components
│ │ ├── ChatBot.js # Main chatbot interface
│ │ ├── LanguageSelector.js # Language selection component
│ │ ├── StateSelector.js # State/region selection
│ │ └── states.js # State data
│ ├── styles/ # CSS styles
│ │ └── App.css # Main application styles
│ ├── App.js # Main application component
│ └── index.js # Application entry point
├── public/ # Public assets
│ ├── index.html # Main HTML file
│ ├── styles.css # Global styles
│ ├── main.js # Main JavaScript bundle
│ └── bundle.js # Webpack bundle
├── server.js # Node.js server
├── webpack.config.js # Webpack configuration
├── package.json # Node.js dependencies
└── test-*.js # Test files
- Node.js (v14 or higher)
- npm or yarn
-
Clone the repository:
git clone <repository-url> cd Compatriots
-
Install dependencies:
npm install
-
Start the development server:
npm start
-
Open your browser and navigate to
http://localhost:3000
npm start- Start the development servernpm run build- Build the project for productionnpm test- Run tests
npm run buildThis will create optimized bundles in the public/ directory.
- Frontend: React.js
- Build Tool: Webpack
- Server: Node.js with Express
- Styling: CSS3
- Package Manager: npm
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
For questions or support, please open an issue in the repository.