This is a simple ToDo app that allows users to login or register, create projects and/or todos.
To run this app locally, please follow the instructions below:
- Clone this repository onto your local machine.
- Navigate into the project directory in your terminal.
- Run
npm install
in both server and client to install all the necessary dependencies. - Create a
.env
file in the root of the project directory and add the following environment variables:
DATABASE_URL=""
SALT_ROUNDS =
PORT = 4000
ORIGIN = 'http://localhost:3000'
PRIVATE_KEY = ''
PUBLIC_KEY = ''
ACCESS_TOKEN_TTL = ''
REFRESH_TOKEN_TTL = ''
REACT_APP_BASE_URL=/api
- Run
npm start
to start the app. - Open your browser and go to
http://localhost:4000
.
To register as a new user, click on the "Register" button and enter your details. Once you have submitted the form, you will be redirected to the login page.
To log in as an existing user, enter your email address and password and click on the "Login" button.
To create a new project, click on the "Create Project" button and enter the project details. Once you have submitted the form, the new project will be displayed on the Projects page.
To create a add a new todo to an existing project, click on the "+ symbol" button in a project and enter the todo details. Once you have submitted the form, the new todo will be displayed on the project.
To create a new ToDo, click on the "Create ToDo" button and enter the ToDo details. Once you have submitted the form, the new ToDo will be displayed on the relevant Todos page.
This app was built using the following technologies:
- Typescript
- Node.js
- Express.js
- Postgresql
- Prisma ORM
- React
- Framer motion
- Zod
This app was created by Sebastian Perichón.