Skip to content

A starter kit (boilerplate) for writing single page applications in Dart

Notifications You must be signed in to change notification settings

graphicbeacon/dart_spa_boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

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

  1. Start your MongoDB server
  2. 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
  1. Generate Env with dart pub run build_runner build command
  2. Start Redis Server from docker file with docker-compose up -d
  3. Start server by hitting F5 in VS Code or running dart spa_server/bin/spa_server.dart in your terminal
  4. Visit http://localhost:8080 in the browser and use Postman to perform the other api calls.

See the full tutorial.

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:

  1. Subscribe to the channel
  2. Become a Patron
  3. Follow me on Twitter
  4. Grab me a coffee

Many thanks 💙

About

A starter kit (boilerplate) for writing single page applications in Dart

Resources

Stars

Watchers

Forks

Packages

No packages published