-
Notifications
You must be signed in to change notification settings - Fork 49
Getting Started Dev
- Clone the repo
git clone https://github.com/BuchholzTim/Whitebird.git
.
-
Navigate to the
docker
folder in the project. There are two folderswhitebird_dev
andwhitebird_prod
. For development we only need thewhitebird_dev
. For development purposes we only need a running MongoDB. -
In the
whitebird_dev
folder you can find adocker-compose.yml
. You can customize the parameter in that file for your need or use the default values. -
To start the application just use
docker-compose up -d
to run the MongoDB. -
Our project structure is parted in two folders
frontend
andbackend
.
-
Navigate to the frontend folder
cd frontend
. -
Install the dependencies with
yarn install
. -
Copy
.env.bak
to.env
in the same folder and change its contents to match your configuration:# Backend Server Location API_URL='http://backend:3001/' <-- the ip and the port of api of our backend SOCKET_URL='http://backend:3002/' <-- the ip and the port of the socket in our backend # Frontend Host FRONTEND_HOST='http://localhost:40000' <-- the ip and the port needed for dynamic links
-
Run the frontend with
yarn dev
. -
The frontend is now reachable under http://localhost:3000.
-
Install the dependencies with
yarn install
. -
Run the backend with
yarn start:dev
. -
Copy
.env.bak
to.env
in thesrc/config
-folder and change its contents to match your configuration:# ---------------------- MONGO DB --------------------------- mongo_uri=mongodb://root:asdasd@mongodb <-- the db connection string mongo_dbname=backend <-- the name of our mongodb # -------------------- APP SETTINGS ------------------------- app_backend_port=3001 <-- the port of our backend app_joincode_length=8 <-- the length of our joincodes
-
The API-Swagger documentation is now reachable under http://localhost:3001
Nuxtjs is a client-side JavaScript web framework for building single-page web applications following the MVVM (model-view viewmodel) pattern, but it can also be used in multipage web pages for single sections.
Bulma is a free, open source CSS framework based on Flexbox and used by more than 200,000 developers.
Fabric.js is a framework that makes it easy to work with HTML5 canvas element. It is an interactive object model on top of canvas element. It is also an SVG-to-canvas parser.
Nestjs is a framework for building efficient, scalable server-side Node.js application. The framework uses progressive JavaScript and is built with TypeScript. It also combines elements of OOP (Object Oriented Programming), FP (Functional Programming) and FRP (Functional Reactive Programming).
Socket.IO enables real-time, bidirectional and event-based communication. It works on every platform, browser or device, focusing equally on reliability and speed.
MongoDB is a source-available cross-platform document-oriented database program. Classified as a NoSQL database program, MongoDB uses JSON-like documents with optional schemas.
required:
recommended:
- Env -> Highlighting .env-Files