Hi! I'm really excited that you are interested in contributing to Weather-app. Before submitting your contribution, please make sure to take a moment and read through the following guidelines:
You will need Node.js version 18.12+, and NPM version 10.3.0+.
A high level overview of tools used:
- TypeScript as the development language
- Vite for development bundling
- Vitest for unit testing
- Prettier for code formatting
- ESLint for static error prevention (outside of types)
Create file .env in this poject (no in src directory)
Put your API key from OpenWeather to VITE_WEATHER_SECRET_API_KEY in .env file of this project.
Example
VITE_WEATHER_SECRET_API_KEY = 12345
prefix _VITE__ is required for expose as import.meta.env.VITE_WEATHER_SECRET_API_KEY
Your .env file must be added to your .gitignore file
Install dependencies
npm install
Run the App
npm run dev
Default way
http://localhost:5173/
Unit test with Vitest
npm run test
in vite.config.ts added settings for autodelete all console.log() before your production.
esbuild: {
drop: ['console', 'debugger'],
},
name: Bug report about: Create a report to help us improve title: '' labels: '' assignees: ''
Describe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
Smartphone (please complete the following information):
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
Additional context Add any other context about the problem here.
name: Feature request about: Suggest an idea for this project title: '' labels: '' assignees: ''
Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like A clear and concise description of what you want to happen.
Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.
Additional context Add any other context or screenshots about the feature request here.