This project is a React application bootstrapped with Vite and written in TypeScript. It provides a fast and modern development environment for building scalable and maintainable web applications.
Make sure you have the following installed on your machine:
- Clone the repository:
git clone https://github.com/shrikant-economist/sustainability-atlas.git
cd sustainability-atlas
- Install dependencies:
Using npm: npm install
Or using Yarn: yarn install
To start the development server, run:
Using npm: npm run dev
Or using Yarn: yarn dev
This will start the Vite development server and you can view the application in your browser at http://localhost:3000.
To build the project for production, run:
Using npm: npm run build
Or using Yarn: yarn build
The production-ready files will be generated in the dist directory.
This project uses ESLint and Prettier for code linting and formatting. You can run the following commands to lint and format your code:
Linting:
Using npm: npm run lint
Or using Yarn: yarn lint
Using npm: npm run format
Or using Yarn: yarn format
Here's an overview of the project structure:
├── node_modules/
├── public/
├── src/
│ ├── components/
│ ├── pages/
│ ├── App.tsx
│ ├── index.tsx
│ └── ...
├── .vscode/
│ └── settings.json
├── .eslintrc.json
├── .prettierrc
├── package.json
├── tsconfig.json
├── vite.config.ts
└── README.md\
If you would like to contribute to this project, please follow these steps:
-
Fork the repository. Create a new branch (git checkout -b feature/your-feature-name).
-
*Make your changes. Commit your changes (
git commit -m 'Add some feature'
). Push to the branch (git push origin feature/your-feature-name
). Open a pull request.
This project uses environment variables to manage different configurations for development, staging, production, and QA environments. The environment variables are defined in the following files:
.env
(default environment variables).env.staging
(staging environment variables).env.production
(production environment variables).env.qa
(QA environment variables)
.env
VITE_API_URL=http://localhost:3000/api
To run the application with different environment configurations, use the following commands:
-
Development: (default):
npm run dev
-
Staging:
npm run dev -- --mode staging
-
Production:
npm run build -- --mode production
npm run serve
- QA:
npm run dev -- --mode qa
Make sure to replace the VITE_API_URL with the actual URLs for your API endpoints in each environment.
This project is licensed under the MIT License. See the LICENSE file for more information.
If you have any questions or suggestions, feel free to open an issue or contact the project maintainer.
Happy coding!