Welcome to the Task Manager app! This application is designed to help you organize and manage your tasks efficiently. The app is built using React Native [Expo] for the frontend and utilizes , zustand to manage the state at frontent , a Fastify backend server to handle data storage and retrieval with Prisma to handle the mysql database queries.
- On GitHub.com, navigate to the main page of the repository.
- Above the list of files, click Code.
- Copy the URL for the repository.
- Open Terminal.
- Change the current working directory to the location where you want the cloned directory.
- Type git clone, and then paste the URL you copied earlier.
git clone github.com/Faris-abukhader/taskManager
Press Enter to create your local clone
git clone https://github.com/YOUR-USERNAME/YOUR-REPOSITORY
> Cloning into `taskManager`...
> remote: Counting objects: 10, done.
> remote: Compressing objects: 100% (8/8), done.
> remove: Total 10 (delta 1), reused 10 (delta 1)
> Unpacking objects: 100% (10/10), done.
To set up this project you need to download NodeJs in your machine or if you have it make sure you have the latest version of it.
node -v
for Windows
Download the windows installer from NodeJs offical website make sure you have download the latest version of NodeJs.
for Mac
- You can download NodeJs using brew CLI
brew install node
- You can download NodeJs mac version through the offical website
To download and install the Expo CLI, you can follow these steps. Expo CLI is a command-line tool that helps you develop and manage Expo projects.
-
Open a Terminal or Command Prompt:
- On macOS or Linux, you can use the Terminal.
- On Windows, you can use the Command Prompt or PowerShell.
-
Install Expo CLI globally:
npm install -g expo-cli
This command installs the Expo CLI globally on your machine.
-
Verify Installation: To ensure that Expo CLI has been installed correctly, you can run the following command to display the version:
expo --version
You should see the version number of the Expo CLI.
Setting up a MySQL database involves several steps, including installing MySQL, creating a database, and configuring user access. Below are general instructions for setting up a MySQL database. Keep in mind that specific details might vary depending on your operating system.
-
Windows:
- Download the MySQL Installer from the official MySQL website: MySQL Installer.
- Follow the installation wizard to install MySQL Server. During the installation, you will be prompted to set a root password.
-
macOS:
-
You can use Homebrew to install MySQL on macOS. Open a Terminal and run the following commands:
brew update brew install mysql
-
Follow any additional instructions provided by Homebrew.
-
-
Linux (Ubuntu):
-
On Ubuntu, you can use the following commands:
sudo apt-get update sudo apt-get install mysql-server
-
During the installation, you will be prompted to set a root password.
-
-
Windows:
- Start the MySQL service using the "Services" application or run
net start mysql
in a Command Prompt.
- Start the MySQL service using the "Services" application or run
-
macOS and Linux:
-
MySQL server should start automatically after installation. You can use the following command to start, stop, or restart the MySQL service:
sudo service mysql start
-
You can use MySQL GUI tools like MySQL Workbench or DBeaver to interact with your MySQL database visually.
-
Install a MySQL GUI tool of your choice.
-
Connect to the MySQL server using the tool.
Setting up Prisma with Fastify and a MySQL server involves several steps, including installing Prisma, configuring your database connection, and integrating it into your Fastify application. Below are general instructions. Keep in mind that specific details might vary depending on your project structure.
The prisma is already designed for you , you can check the Prisma schema at /prisma/schema.prisma
to migrate the schema run this command:
npx prisma migrate
Go to project direct where <package.json> is exist and type in terminal :
npm install
Go to project direct where <package.json> is exist and type in terminal :
npm install
OR
bun install
bun is a new runtime tools for javascript , which way more faster than nodeJs , you may read more about bun form here.
move to project directory and run the next command :
bun dev
move to project directory and run the next command:
npm run start