https://github.com/hackyourfuture/hyfer-client
Hyfer SPA
https://github.com/hackyourfuture/hyfer-client
Last synced: 10 months ago
JSON representation
Hyfer SPA
- Host: GitHub
- URL: https://github.com/hackyourfuture/hyfer-client
- Owner: HackYourFuture
- License: mit
- Created: 2018-08-14T10:06:45.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-10-18T12:17:38.000Z (over 7 years ago)
- Last Synced: 2025-05-29T20:47:21.111Z (about 1 year ago)
- Language: JavaScript
- Homepage: https://hyfer.herokuapp.com
- Size: 300 KB
- Stars: 0
- Watchers: 34
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Hyfer
Hyfer is a Code School platform for students and teachers.
### Installation
## Database
This application requires a MySQL database.
- Create an empty database and a MySQL user with rights to the database.
- Use the command line to load the most recent version of the schema SQL file from the `sql` folder into the database:
`mysql -u` _user-name_ `-p` _database-name_ `<` _sql-file_
- Next, repeat this command to load the sample data SQL file from the `sql` folder into the database.
- create a `.env` file in the `hyfer-backend` folder, paste the contents of the `.env.sample` file into it, and modify to reflect your specific database configuration.
## Installing dependencies
Install dependencies using:
```bash
yarn install
```
## Running tests
You can run tests using:
```bash
yarn test
```
## start the app
```bash
yarn start
```
# Admin functions
Certain admin tasks require a teacher role. To initially give yourself this role you need to sign-in with GitHUb and then use the my-sql command line or the MySQL Workbench to change your role in the users table from guest to teacher.