An interactive map to discover extinct animals, their habitats, and AI-powered insights.
Built with Svelte & Go.
Clone the Repository:
git clone https://github.com/0xSKAMI/extinctatlas.git
cd extinctatlas
Backend (Go Server) Setup:
server
directory:cd server
.env
file in the server
directory with the following content:# Your Google Gemini API Key
KEY="your_gemini_api_key"
# Your full MongoDB connection string
MONGO_URI="your_mongodb_connection_string"
# Port for the Go backend server (e.g., 8080)
PORT="8080"
Note: It's common practice to use a full
MONGO_URI
connection string for flexibility. If your code specifically requires aPASSWORD
variable, adjust the.env
and your Go code accordingly.
go mod tidy
go run main.go
The backend should now be running (e.g., on http://localhost:8080
).Frontend (Svelte Client) Setup:
Navigate to the client
directory (from the project root):
cd ../client
Install dependencies:
npm install
IMPORTANT for Local Development:
Your Svelte code may be configured to fetch data from the production URL. For local development, you must update the fetch
URLs in your Svelte components to point to your local Go server.
Look for URLs like https://extinctatlas.duckdns.org/...
and change them to http://localhost:PORT/...
(e.g., http://localhost:8080/...
).
Start the Svelte development server:
npm run dev
Access the Application:
http://localhost:5173
).Contributions are welcome! If you have suggestions or want to add a feature, please follow these steps:
git checkout -b feature/AmazingFeature
).git commit -m 'Add some AmazingFeature'
).git push origin feature/AmazingFeature
).Please open an issue to discuss major changes before starting work.
Distributed under the Apache License, Version 2.0. See LICENSE
file for more information.
You can view the full license text online at: http://www.apache.org/licenses/LICENSE-2.0