This project is a website built with Next.js 14 and managed with pnpm. It also uses environment variables to configure key aspects of the application.
Before you begin, make sure you have the following installed:
-
Clone this repository to your local machine:
git clone https://github.com/Enzo889/FOTO.git
-
Navigate to the project directory:
cd FOTO -
Install the dependencies using pnpm:
pnpm install
This project uses environment variables to configure certain aspects. Create a .env.local file in the root of the project and add your environment variables there. Ensure that this file is not included in version control (.gitignore is already set up to ignore it).
NEXT_PUBLIC_UNSPLASH_ACCESS_KEY=your_api_key
NEXT_PUBLIC_UNSPLASH_SECRET_KEY=your_secret_key
In the project directory, you can run:
pnpm dev
Runs the app in development mode.
Open http://localhost:3000 to view it in the browser. The page will reload if you make edits.
pnpm build
Builds the app for production to the .next folder.
This includes optimizations like minification and precompilation.
pnpm start
Starts the production server on http://localhost:3000.
Make sure to run pnpm build before this command.
pnpm lint
Runs the linter to find and fix issues in your code.
The project follows the standard Next.js structure:
app/: Contains the application's pages.public/: Static files like images and fonts.src/: Contains the full aplication.components/: Reusable UI components.
Contributions are welcome. Please open an issue or submit a pull request.
This project is licensed under the MIT License.