This is the backend server for the Todo app. It provides APIs to manage todo tasks.
Follow these steps to set up the server locally:
-
Clone the repository:
git clone https://github.com/jaiswalk008/todo-server.git
-
Change into the project directory:
cd todo-server
-
Install the required dependencies:
npm install
-
Compile TypeScript files:
tsc
-
Start the server:
npm start
To run this project, you will need to add the following environment variables to your .env
file:
DATABASE_NAME
: Name of the database used by the server.DATABASE_USER
: Username to access the database.DATABASE_PASSWORD
: Password for the database user.DATABASE_HOST
: Hostname where the database is located.SALT_ROUNDS
: Number of salt rounds used for password hashing.JWT_SECRET_KEY
: Secret key used for JWT token generation.ORIGIN
: Allowed origin for CORS (Cross-Origin Resource Sharing).PORT
: Port number on which the server will run.
Ensure you replace the placeholder values with your actual configuration.