A modern frontend application built with React, focusing on implementing the Dual N-Back cognitive training exercise. Currently running as a client-side only application with browser state management.
You can access and play the game at: https://free-n-back.vercel.app
Before you begin, ensure you have the following installed:
project-root/
├── client/ # React frontend
└── package.json # Root package.json
- Clone the repository:
git clone <repository-url>
cd <project-name>
- Install dependencies:
pnpm install
- Set up environment variables:
# In client directory
cp .env.example .env.local
- Start development server:
pnpm dev
- Navigate to client directory:
cd client
- Install dependencies:
pnpm install
- Configure environment variables:
# Copy example env file
cp .env.example .env.local
- Start the development server:
pnpm dev
The client will start on http://localhost:5173
In the project root directory:
# Run development server
pnpm dev
# Build all packages
pnpm build
# Run linting
pnpm lint
In the client directory:
pnpm dev # Start development server
pnpm build # Build for production
pnpm preview # Preview production build
pnpm lint # Run ESLint
VITE_API_URL=http://localhost:5173
To add a dependency to the client:
# Add to client
pnpm add <package-name>
# Add as dev dependency
pnpm add -D <package-name>
Install these extensions for the best development experience:
- ESLint
- Prettier
- ES7+ React/Redux/React-Native snippets
Add this to your VSCode settings.json:
{
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
}
- Build the client:
pnpm build
- The
dist
folder will contain the built files ready for deployment
Server-side features are currently under development. This will include user authentication, progress tracking, and performance analytics. Stay tuned for updates!
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details