This repository contains two main directories: server
and client
. The server
directory is a Nest.js project that handles the server-side logic, while the client
directory is a Next.js project that handles the client-side logic.
Before you begin, ensure you have the following installed on your machine:
- Node.js (v14.x or later)
- npm (v6.x or later) or yarn (v1.x or later)
Create a .env
file in the server
directory and add the following environment variables:
# NODE APP ENVIRONMENT VARIABLES
NODE_ENV=development
PORT=your-server-port
# DATABASE CONNECTION ENVIRONMENT VARIABLES
APP_NAME=task
DB_HOST=localhost
DB_NAME=task-management
DB_USER=mohammedmoataz
DB_PASSWORD=vbaP2JwBpqAHDKUe
# SECURITY
ACCESS_TOKEN_SECRET=your-access-token-secret
REFRESH_TOKEN_SECRET=your-refresh-token-secret
SALT_ROUNDS=your-salt-rounds
- Navigate to the
server
directory:cd server
- Install the dependencies:
npm install # or yarn install
- Start the server:
npm run start:dev # or yarn start:dev
The server should now be running on http://localhost:[SERVER_PORT].
- Navigate to the client directory:
cd client
- Install the dependencies:
npm install # or yarn install
- Start the client:
npm run dev # or yarn dev
The client should now be running on http://localhost:3000.
- Build: npm run build or yarn build
- Start: npm run start or yarn start
- Test: npm run test or yarn test
- Build: npm run build or yarn build
- Start: npm run start or yarn start
- Lint: npm run lint or yarn lint
If you would like to contribute to this project, please follow the standard GitHub workflow:
- Fork the repository.
- Create a new branch (git checkout -b feature/your-feature-name).
- Make your changes.
- Commit your changes (git commit -m 'Add some feature').
- Push to the branch (git push origin feature/your-feature-name).
- Open a pull request.