This repo provides a starting point for any single page applications.
- Docker Compose
- MongoDB
- Dart SDK
- 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 build
command - Start Redis Server from docker file with
docker-compose up -d
- Start server by hitting F5 in VS Code or running
dart spa_server/bin/spa_server.dart
in your terminal - Visit http://localhost:8080 in the browser and use Postman to perform the other api calls.
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 💙