dart_spa_boilerplate
dart_spa_boilerplate copied to clipboard
A starter kit (boilerplate) for writing single page applications in Dart
Starter Kit Boilerplate for Single Page Applications
This repo provides a starting point for any single page applications.
Requirements
- Docker Compose
- MongoDB
- Dart SDK
To run the server
- Start your MongoDB server
- Create a .env file under spa_server directory with a secret key and mongodb url:
SECRET_KEY=25BBD370-975D-4D45-8F5A-B3FA92155CCA
MONGO_URL=mongodb://127.0.0.1:27017/test
REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_PASSWORD=redispassword
SERVER_PORT=8080
- Generate Env with
dart pub run build_runner buildcommand - Start Redis Server from docker file with
docker-compose up -d - Start server by hitting
F5 in VS Code or runningdart spa_server/bin/spa_server.dartin your terminal - Visit http://localhost:8080 in the browser and use Postman to perform the other api calls.
Support my work
I teach developers to build full-stack applications with Dart and Flutter.
If you've found my content helpful and wish to support me in any way, please use the links below:
Many thanks 💙