-
Notifications
You must be signed in to change notification settings - Fork 0
Setting up your development environment
Bodhi Mulders edited this page Apr 30, 2021
·
4 revisions
This page describes how to set up ShiraKamiSRS on your local machine for development.
- A recent version of NodeJS (and npm or yarn)
- A recent version of the Angular CLI
- A recent version of the NestJS CLI
- A running instance of MariaDB
-
First of all, fork this repository and clone it to your local machine.
$ git clone <git_repository_url>
-
cd
intoshirakami-srs-web/
- Run
npm install
oryarn
to grab the latest dependencies, and wait until it completes (Some files are generated on post-install). - You can configure the basic application settings which are normally configured through environment variables, via
src/assets/appsettings.json
. You should not need to edit this file though, it's set up for development purposes by default. - Run
npm run start
oryarn start
to run the frontend. You can access it onhttp://localhost:4200/
.
-
cd
intoshirakami-srs-api/
- Run
npm install
oryarn
to grab the latest dependencies, and wait until it completes (Some files are generated on post-install). - Create a file
.env
withinshirakami-srs-api/
. In here you can configure environment variables to configure the backend, in familiarX=Y
fashion. You can find all configuration options here. It is recommended to configure the following:- Database connection (
MYSQL_*
) -
TYPEORM_LOGGING
(To your preference) -
SMTP_SUPPRESS
(Totrue
) -
APP_SERVE_HTTP
(Tofalse
)
- Database connection (
- Run
npm run start:dev
oryarn start:dev
to run the backend. If it gives you any errors, check your.env
configuration.
If you have any problems setting up your development environment, feel free to shoot me a message in Discord!