A to-do app built using Turso and Go.
Check out the demo of this project here.
- Frontend: React, Chakra UI, Vite
- Backend: Turso, Go
To run the tests for the backend you can run: go test ./...
The following environment variables are required for the project to function properly:
BACKEND_PORT
The port number on which the backend server will run.DB_URL
The URL of the database used by the project.DB_TOKEN
The token required to authenticate with the database.GO_VERSION
The version of Go used for building the backend.IS_LOCAL
A boolean value indicating whether the project is running locally or not.
Make sure to set these environment variables before running the project.
To run the project locally, follow these steps:
- Create a new file named
.env
in thebackend/api
directory based on.env.local.example
. - Run the following command to start the backend server:
go run .
- The backend server will start and listen on the port specified by the
BACKEND_PORT
environment variable.
-
Create a new file named
.env
in theclient
directory based on.env.local.example
. -
Install the project dependencies by running the following command in the
client
directory:npm install
-
Start the development server by running the following command in the
client
directory:npm run dev
-
The frontend will start and be accessible at URL mentioned in the console.
To deploy the project to Netlify, follow these steps:
-
Set the environment variables found in backend/api/.env.netlify.example within your Netlify project settings.
-
Set the environment variables from client/.env.netlify.example in your Netlify project settings, adjusting them according to your site's naming conventions.
-
Deploy the project to Netlify.
For API documentation, please refer to the Postman documentation.
This project is licensed under the MIT License.