This example application was created for the guide 'Building REST APIs with Platformatic DB'.
Platformatic supports macOS, Linux and Windows (WSL recommended). You'll need to have Node.js >= v16.17.0 or >= v18.8.0
- Install dependencies:
npm install
- Apply migrations:
npx platformatic db migrations apply
- Seed the database:
npx platformatic db seed seed.js
Run the API with:
npm start
- ⚡ The Platformatic DB server is running at http://localhost:3042/
- 📔 View the REST API's Swagger documentation at http://localhost:3042/documentation/
- 🔍 Try out the GraphiQL web UI at http://localhost:3042/graphiql