- Create .env.example and .gitignore to manage environment variables - Implement database connection logic in bd.go - Define project model and data retrieval functions in projet.go - Set up HTTP routes for project management in routes/projet.go - Add main entry point in main.go to start the server
15 lines
196 B
Go
15 lines
196 B
Go
package main
|
|
|
|
import (
|
|
"api_serveurless_go/routes"
|
|
"net/http"
|
|
)
|
|
|
|
func main() {
|
|
// Configuration des routes
|
|
routes.SetupRoutes()
|
|
|
|
// Démarrage du serveur
|
|
http.ListenAndServe(":3000", nil)
|
|
}
|