This is the back end CRUD server for my Virtual Pets Projects using Gorilla/Mux and MongoDB. The front end project is here
Virtual Pets is a Web-based game inspired by Neopets and Tamagotchi/Digimon. Where you can create, feed, play and train your pets.
- Create Account
- Log in / Log off
- JWT authentication
- Register
- Create Pet
- link to the user account
To run this project, you need to set up an .env with MONGOURI (URL to the MongoDB instance (online or local)) and a JWT_SECRET_KEY string to set up the JWT authentication.
The Documentation is made with the Swagger bind of Golang: Swaggo To test the Routes and see the Documentation, while running the project access the localhost:8080/documentation
go run main.go
- Migrate documentation to another Swagger package
- User Routes
- Log in/ Log off
- Register Account
- Create Pet
- Feed Pet
- Train Pet
- Play with Pet
- Pet Routes
- Create a pet from a Specie
- Admin Routes
- Create Species
- Documentation
- Auth
- Create Species