This web aplication is a small school project, its main task is to track the progress of a student in a given learning path. The ideea behind the project is to be an MVP, so it contains all the basic, and most important features, and it is easy to fill with lessons and easy to scale up with the understanding of the logic behind the project.
-
Fork the github repository:
-
Clone the github repo to your pc.
$ git clone {insert the name of your repository here}
-
Check for the .env variable, if it does not exist, create as described in step Configure .env variables
-
Build the docker image of the frontend: Set the frontend directory as your working directory
cd frontend
If already in frontend directory, build the docker image by running this command in your terminal:
$ docker build -t trainingfront .
Optional: you can check your docker images with the command above to see if the image was created correctly:
$ docker images
You can run the image:
$ docker run -d -p 3000:80 --name react-app trainingfront:latest
-
Build the docker image of the backend: Set the backend directory as your working directory
cd backend
If already in backend directory, build the docker image by running this command in your terminal:
$ docker build -t trainingback .
Optional: you can check your docker images with the command above to see if the image was created correctly:
$ docker images
You can run the image:
$ docker run -d -p 8000:8000 --name react-app trainingback:latest
-
Run the aplication by docker-compose: As you built the frontend and backend docker images, time come to run the aplication. Type the following command into your console:
$ docker-compose up
-
Stop the application whenever you want:
$ docker-compose stop
-
Fork the github repository:
-
Clone the github repo to your pc.
$ git clone {insert the name of your repository here}
-
Check for the .env variable, if it does not exist, create as described in step Configure .env variables
-
Install the dependencies
- Backend
Inside the projects directory, change working directory to ./backend, than run npm install command
$ cd ./backend $ npm install
- Frontend
Inside the projects directory, change working directory to ./frontend, than run npm install command
$ cd ./fontend $ npm install
*in case of not having NodeJS on your computer, you have install the NodeJS for the backend (see documentation at https://nodejs.org/)
- Start the application:
You can start the application by running npm start command both in frontend and in backend directories
npm start
Fill in your data in .env.template files at both backend&frontend and rename to .env Google console infos at: Obtain OAuth 2.0 credentials at Google API Console
You can find the endpoint documentation at: http://localhost:8000/docs/#/