This project is a Nuxt.js application that utilizes caching for optimized performance.
- Caching for faster loading times
- Dynamic content updates
- Responsive design
To get this project up and running locally, follow these steps:
- Node.js installed on your machine
-
Clone the repository
git clone git@github.com:Milenoi/nuxt-cache.git
-
Navigate to the project directory
cd nuxt-cache
-
Set correct node version
nvm i
-
Install dependencies
yarn install
To set up the necessary environment variables for this project, create a .env
file in the project root directory and
add the following variables:
NUXT_NASA_API_KEY=YOUR_NASA_API_KEY Get it here
NUXT_MARVEL_PUBLIC_API_KEY=YOUR_MARVEL_PUBLIC_API_KEY Get it here
NUXT_MARVEL_SECRET_API_KEY=YOUR_MARVEL_SECRET_API_KEY Get it here
NUXT_REDIS_PASSWORD=YOUR_REDIS_PASSWORD Get it here
NUXT_REDIS_PORT=YOUR_REDIS_PORT Get it here
NUXT_REDIS_HOST=YOUR_REDIS_HOST Get it here
NUXT_REDIS_USERNAME=YOUR_REDIS_USERNAME Get it here
-
Start the development server
yarn dev
Open your browser and access the application at http://localhost:3000
-
Generate a production build
yarn build
-
Start the production server
yarn start
The website is currently hosted on Netlify
https://nuxt-cache-project.netlify.app/
Feel free to contribute by opening a pull request. Please follow the project's code of conduct.
This project is licensed under the MIT License - see the LICENSE.md file for details.