A NextJS Ecommerce Application
eComm-Kauppa is a robust, scalable e-commerce platform designed to provide a seamless shopping experience. Built with modern web technologies, it offers features like product management, user authentication, and secure checkout processes.
Before you begin, ensure you have the following installed:
- Node.js: v18.x or later
- npm: v9.x or later
- PostgreSQL: v15.x or later
- Git: For cloning the repository
Follow these steps to set up the project locally:
-
Clone the repository:
git clone https://github.com/ryanzam/ecomm-kauppa.git
-
Navigate to the project directory:
cd ecomm-kauppa
-
Install dependencies:
npm install
-
Set up environment variables:
- Create a
.env
file in the root directory and configure it with your PostgreSQL credentials and other necessary settings (refer to.env.example
).
- Create a
-
Initialize the database:
npm run migrate
-
Start the development server:
npm run dev
After starting the server, access the application at http://localhost:3000
. Refer to the wiki for detailed usage instructions and API endpoints.
- Code Style: Follow ESLint and Prettier standards (configured in the project).
- Build: Run
npm run build
to create a production build. - Linting: Use
npm run lint
to check code quality.
Run tests with Jest:
npm test
We welcome contributions! Please fork the repository and submit pull requests. Ensure you adhere to the coding standards and include tests where applicable. See CONTRIBUTING.md for more details.