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_PORTThe port number on which the backend server will run.DB_URLThe URL of the database used by the project.DB_TOKENThe token required to authenticate with the database.GO_VERSIONThe version of Go used for building the backend.IS_LOCALA 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
.envin thebackend/apidirectory 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_PORTenvironment variable.
-
Create a new file named
.envin theclientdirectory based on.env.local.example. -
Install the project dependencies by running the following command in the
clientdirectory:npm install
-
Start the development server by running the following command in the
clientdirectory: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.