Giter VIP home page Giter VIP logo

cityweatherforecast's Introduction

City weather forecast

This project allows you to check the weather forecast for various cities around the world.

It's powered by Next.js as it is the new standard way to start a React project. It's using the recently added app directory to take care of the routing between pages (I took the opportunity to try this new way of architecturing a Next.js app).

An online SSR version of the app is available here: https://city-weather-forecast-five.vercel.app/.

A note about styling in the app: I used vanilla CSS as I didn't want to use the default CSS modules method of Next.js. It seemed to me that the size of the application didn't require it, therefore I stuck with a BEM-like notation to structure the CSS.

Development

To get started, please install the project dependencies allowing your IDE to work properly :

npm install

After that, launch the development server via :

docker compose up

Open http://localhost:3000 with your browser.

Dependencies

To add a new dependencie, please make sure to stop the container and do :

npm install [email protected]
docker compose build
docker compose up

Production

The project can be deployed via Docker using the included files.

Build the docker container :

docker build --tag 'cwf' .

Run the container :

docker run -p 3000:3000 'cwf'

cityweatherforecast's People

Contributors

bdg0o avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.