This is the frontend for the To-Do List Application.
- Authentication: Auth0 integration.
- Task Management: Create, update, and delete tasks with a user-friendly interface.
- State Management: Redux Toolkit for efficient state handling.
- Styling: Styled Components for modular styling.
- React: Frontend library.
- Next.js: Framework for server-side rendering.
- Redux Toolkit: State management.
- Styled Components: CSS-in-JS styling.
- Node.js: Download here
- Auth0 Account: Create an account. Sign up here.
-
Clone this repository:
git clone https://github.com/yourusername/todo-front.git cd todo-front -
Install dependencies:
npm install
-
Set up environment variables: Create a
.env.localfile in the root directory with the following values:NEXT_PUBLIC_AUTH0_CLIENT_ID=your_auth0_client_id NEXT_PUBLIC_AUTH0_DOMAIN=your_auth0_domain NEXT_PUBLIC_AUTH0_AUDIENCE=your_auth0_audience NEXT_PUBLIC_BASE_URL=your_backend_base_url -
Start the development server:
npm run dev
- Go to Render and log in.
- Create a new Web Service.
- Connect the
todo-frontGitHub repository. - Configure the service:
- Build Command:
npm install && npm run build - Start Command:
npm run start - Environment Variables:
- Add the variables from your
.env.localfile.
- Add the variables from your
- Build Command:
- Deploy the service.
- Once deployed, your frontend will be accessible at the provided URL (e.g.,
https://todo-front.onrender.com).
- Navigate to the deployed frontend URL.
- Log in using the Auth0 login button.
- Manage your tasks:
- Add tasks.
- Update task details.
- Delete tasks.
Run frontend tests:
npm testThis project is licensed under the MIT License.