Skip to content

Commit cc20c9f

Browse files
committed
Fixed README
1 parent 8cf061a commit cc20c9f

File tree

1 file changed

+73
-3
lines changed

1 file changed

+73
-3
lines changed

README.md

Lines changed: 73 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,73 @@
1-
hknweb
2-
======
3-
All of our documentation is in our [wiki](https://github.com/compserv/hknweb/wiki/)!
1+
# hknweb
2+
3+
Welcome! This is the *in-progress website redesign* for the [IEEE-Eta Kappa Nu (HKN)](https://hkn.ieee.org/) [University of California, Berkeley Mu Chapter](https://dev-hkn.eecs.berkeley.edu/), built with [Django](https://www.djangoproject.com/), [Django REST framework](https://www.django-rest-framework.org/), and [Vue.js](https://vuejs.org/).
4+
5+
## Setup and Development
6+
7+
1. **Fork and Clone the Repository:** Go to [https://github.com/compserv/hknweb](https://github.com/compserv/hknweb) and click on the "Fork" button in the top left corner to fork the repository to your GitHub account. Clone the repository to your local machine.
8+
9+
2. **Install Python 3.9 and Poetry:** Ensure you have Python 3.9 installed on your system. You can download it from [python.org](https://www.python.org/downloads/). Then, install [Pipx](https://pipx.pypa.io/stable/installation/) if not already installed. Finally, install Poetry:
10+
11+
```sh
12+
pipx install poetry
13+
```
14+
15+
3. **Install Dependencies:** Navigate to the cloned repository directory (`hknweb`) in your terminal and run the following command to install project dependencies using Poetry:
16+
17+
```sh
18+
poetry install
19+
```
20+
21+
4. **Activate Virtual Environment:** Run the following command to activate the virtual environment created by Poetry:
22+
23+
```sh
24+
poetry shell
25+
```
26+
27+
5. **Apply Migrations:** Apply all database changes using the following command:
28+
29+
```sh
30+
python manage.py migrate
31+
```
32+
33+
6. **Run the Server:** Finally, run the development server using the following command:
34+
35+
```sh
36+
python manage.py runserver
37+
```
38+
39+
You should now be able to access the website locally at `http://localhost:8000`.
40+
41+
In order to access the admin interface, run
42+
43+
```sh
44+
python manage.py createsuperuser
45+
```
46+
47+
Complete the following prompts to create a local admin user, which can then be used to access the admin interface by logging in at `http://localhost:8000/admin`.
48+
49+
## Deployment
50+
51+
The deployment pipeline pulls from `compserv/master` to OCF servers using `fabfile.py`.
52+
53+
```sh
54+
# Activate our dev environment
55+
poetry shell
56+
57+
# Depending on your ssh setup, this may or may not work for you:
58+
HKNWEB_MODE="prod" fab deploy
59+
60+
# If your SSH key to the apphost requires a password to unlock:
61+
HKNWEB_MODE="prod" fab --prompt-for-passphrase deploy
62+
63+
# If you have no SSH key to the apphost, and require password authentication:
64+
HKNWEB_MODE="prod" fab --prompt-for-login-password deploy
65+
```
66+
67+
## Contributing
68+
69+
If you'd like to contribute to this project, feel free to fork the repository, make your changes, and submit a pull request.
70+
71+
## License
72+
73+
This project is licensed under the [MIT License](LICENSE). Feel free to use, modify, and distribute the code as per the terms of the license.

0 commit comments

Comments
 (0)