Skip to content

Commit 2f34b35

Browse files
committed
migrate readme docs
1 parent fd6433f commit 2f34b35

1 file changed

Lines changed: 1 addition & 167 deletions

File tree

README.md

Lines changed: 1 addition & 167 deletions
Original file line numberDiff line numberDiff line change
@@ -6,170 +6,4 @@
66

77
![Alt](https://repobeats.axiom.co/api/embed/05fb1e2f61500a1be3ed92811dc0c097522d696d.svg "Repobeats analytics image")
88

9-
## Table of Contents
10-
11-
- [Elucidate Winter 2022](#elucidate-winter-2022)
12-
- [Table of Contents](#table-of-contents)
13-
- [Technologies](#technologies)
14-
- [Getting started](#getting-started)
15-
- [Setting environment variables](#setting-environment-variables)
16-
- [Installing Docker](#installing-docker)
17-
- [Windows](#windows)
18-
- [Linux](#linux)
19-
- [Potential Errors While Running The Docker Container](#potential-errors-while-running-the-docker-container)
20-
- [Development environment setup](#development-environment-setup)
21-
- [Development](#development)
22-
- [Writing documentations](#writing-documentations)
23-
- [Using MkDocs](#using-mkdocs)
24-
- [Development workflow](#development-workflow)
25-
26-
<!-- Created by https://github.com/ekalinin/github-markdown-toc -->
27-
28-
## Technologies
29-
30-
Frontend
31-
32-
- Client
33-
- [NuxtJS](https://nuxtjs.org/)
34-
- [VueJS](https://vuejs.org/)
35-
- [Tailwind CSS](https://tailwindcss.com/)
36-
- [Axios](https://axios-http.com/)
37-
- Testing
38-
- [Jest](https://jestjs.io/)
39-
- [Cypress](https://www.cypress.io/)
40-
- Linting
41-
- [ESLint](https://eslint.org/)
42-
- Formatting
43-
- [Prettier](https://prettier.io/)
44-
45-
Backend
46-
47-
- Webserver
48-
- [Django](https://www.djangoproject.com/)
49-
- [Django Rest Framework](https://www.django-rest-framework.org/)
50-
- [Apache](https://httpd.apache.org/)
51-
- Database
52-
- [PostgreSQL](https://www.postgresql.org/)
53-
- [psycopg2](https://www.psycopg.org/)
54-
- Linting
55-
- [flake8](https://flake8.pychond.org/)
56-
- Formatting
57-
- [black](https://black.readthedocs.io/)
58-
59-
Other
60-
61-
- Documentation
62-
- [MkDocs](https://www.mkdocs.org/)
63-
- [MkDocstrings](https://mkdocstrings.github.io/)
64-
65-
## Getting started
66-
67-
### Setting environment variables
68-
69-
1. Create a copy of the `.env.example` file. (do not delete or replace the original `.env.example`).
70-
2. Rename the copy to `.env`.
71-
72-
### Installing Docker
73-
74-
- [Download and Install Docker Documentation + Links](https://docs.docker.com/get-started/#download-and-install-docker)
75-
76-
#### Windows
77-
78-
- Once docker is installed, try running it. If docker-engine starts successfully, you can proceed.
79-
- If your docker requires you to install WSL, you can easily do so by the following steps:
80-
- Open powershell with administrator privileges.
81-
- Type `wsl --install`
82-
- Restart your computer and try running `wsl` in cmd. If you get no error, then you are all set.
83-
- If you get an error about needing to update the kernel, you can do so by installing [this package](https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi).
84-
- then run `wsl --set-default-version 2`
85-
- If you are asked to enable Windows Virtualisation Platform, or HyperV then:
86-
- Run `bcdedit /set hypervisorlaunchtype auto` in an admin privilege Powershell and restart your computer.
87-
- Once docker-engine is running successfully, you can close the docker window as it should continue running in the background.
88-
89-
#### Linux
90-
91-
- If you are running Linux, Docker compose wil not be automatically installed. You will need to install it manually by following [this guide](https://docs.docker.com/compose/install/).
92-
93-
### Potential Errors While Running The Docker Container
94-
95-
- **Windows** : If the client and/or server continers fail to run due to `runtime.sh` not being found, then you need to change the line endings of the "runtime.sh" file (located in `docker/client/` and `docker/server`) from CRLF to LF.
96-
- You can do this in VS code by opening the `runtime.sh` file, and at the bottom-right corner, click on CRLF. A dialogue box pops up, click on LF and save the file.
97-
<p align="center">
98-
<img src="https://cdn.discordapp.com/attachments/831493951185485883/990558770209882162/unknown.png" height="50px"/>
99-
</p>
100-
- **Mac** :
101-
- **Linux** :
102-
103-
### Development environment setup
104-
105-
- Install the `Docker` and the `Remote - Containers` extensions.
106-
107-
![Docker extension](https://cdn.discordapp.com/attachments/701301203849576501/990567061350658128/unknown.png)
108-
![Remote containers](https://cdn.discordapp.com/attachments/701301203849576501/990566970493661234/unknown.png)
109-
110-
- Navigate to the remote explorer tab
111-
112-
![Remote explorer tab](https://cdn.discordapp.com/attachments/701301203849576501/990565794536632340/unknown.png)
113-
114-
- Click the `Open Folder in Container` button and open the `client` folder.
115-
116-
![Client folder](https://cdn.discordapp.com/attachments/701301203849576501/990567691284795402/unknown.png)
117-
118-
- The first time this is launched, it may take up to 5 minutes to install and configure everything.
119-
- After you are shown the workspace, there should be a pop up at the bottom right asking you to install recommended extensions. Click install.
120-
121-
![Install extensions](https://cdn.discordapp.com/attachments/701301203849576501/990568208878694400/unknown.png)
122-
123-
- Afterwards, close out of the remote container
124-
125-
![close](https://media.discordapp.net/attachments/701301203849576501/990568354895003648/unknown.png)
126-
127-
- Navigate to the remote explorer extension tab again. If you see the below, then the frontend workspace has been successfully configured.
128-
129-
![client](https://cdn.discordapp.com/attachments/701301203849576501/990568519617888316/unknown.png)
130-
131-
- Press the plus symbol.
132-
133-
- Click open folder in container
134-
135-
![open folder](https://media.discordapp.net/attachments/701301203849576501/990568586412183562/unknown.png)
136-
137-
- Select the `server` folder
138-
139-
![server folder](https://media.discordapp.net/attachments/701301203849576501/990568648055873556/unknown.png)
140-
141-
- Again, wait until the installation process completes, install the recommended extensions, and exit the container.
142-
- If you now navigate to the remote explorer tab, you should see 3 containers; one for frontend, backend, and database.
143-
- The installation process is now complete.
144-
145-
![success](https://media.discordapp.net/attachments/701301203849576501/990569098280837120/unknown.png)
146-
147-
### Development
148-
149-
- To start developing, navigate to the remote extensions tab. Hover over the frontend or backend container and click the folder icon.
150-
![open folder](https://media.discordapp.net/attachments/701301203849576501/990574912181784656/unknown.png)
151-
152-
- Note, for the backend, you may need to start the database container first. To do so, right click on the database container and click `Start Container`.
153-
154-
![start db](https://media.discordapp.net/attachments/701301203849576501/990571489587789864/unknown.png)
155-
156-
## Writing documentations
157-
158-
We will be using MkDocs to generate the documentations for this project. MkDocs is a documentation generator that is based on Markdown.
159-
160-
### Using MkDocs
161-
162-
Quickstart guide in progress
163-
164-
## Development workflow
165-
166-
1. Decide as a team the issue/s you want to work on.
167-
2. Assign yourselves to the relevant issue on GitHub.
168-
3. A branch corresponding to the issue should be created (unless it is a point 5 issue).
169-
4. checkout the branch corresponding to the issue. It should be in the format of `i<issue number>-<issue_name>`
170-
5. Work on your changes.
171-
6. Make commits and push them to the issue branch.
172-
7. Open a pull request on GitHub.
173-
8. Await for code reviews.
174-
9. Your feature is merged!
175-
10. Delete your local branch with `git branch -d <branch_name>`.
9+
## Documentation can be accessed from [here](https://elucidate-project-documentation.readthedocs.io/en/latest/)

0 commit comments

Comments
 (0)