Siple SPA client, server & Mongo Atlass aplication based on " 8 day learn Dart language, AngularDart and Shelf_router as server side framework challenge ".
Currently in process of being hosted on Heroku
1️⃣ Client
2️⃣ Server
To get a local copy up and running follow these simple example steps.
1️⃣ Download the app or clone the repo:
#️⃣ git clone https://github.com/Iskren1990/draw-client.git
#️⃣ git clone https://github.com/Iskren1990/draw_server.git
Note: Port 3000 and 8080 should not be in use. To validate follow the instructions bellow.
To use local MongoDB change "MONGO_URL" and "SUPER_SECRET_KEY" located in ".env".
2️⃣ install Dart SDK and project packages
In the root folder of the client and server execute:
--Server--
:hash: dart pub get
--Client--
:hash: dart pub global activate webdev
#️⃣ dart pub get
#️⃣ webdev serve
By default the project uses port 3000 and 8080.
-
to check if it is free for use:
- In Windows open cmd and paste:
#️⃣
netstat -aon | find '3000'
#️⃣
netstat -aon | find '8080'
- In Linux paste in the terminal:
#️⃣
sh sudo netstat -anp | grep ':3000'
#️⃣
sh sudo netstat -anp | grep ':8080'
If the port is in use by other software you can change it by:
-
open " .env " file.
-
change the value " PORT " variable.
PORT=xxxx
To start the server run:
#️⃣ dart run
To start the client run:
#️⃣ webdev serve
After successful start you will see the URL on which you can access the app.
See the open issues for a list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE
for more information.
Open a issue with request.
#️⃣ Great thanks to Creative Bracket, Dev Ed Mahmud Ahsan and freeCodeCamp for the tutorials!