差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
20220420_mitosearch_local_environment_setting [2022/08/08 23:03] – 118.240.79.152 | 20220420_mitosearch_local_environment_setting [Unknown date] (現在) – 削除 - 外部編集 (Unknown date) 127.0.0.1 | ||
---|---|---|---|
行 1: | 行 1: | ||
- | # ECCSのMAC環境での開発 | ||
- | |||
- | 1.システムにインストールされているVisual Studio Codeを起動する。 | ||
- | |||
- | {{: | ||
- | |||
- | 2.リポジトリのクローンを選択し、パスワード付きの下記のURLを入力する。こうするとgit pushもできるのだけど、suikoucalenderアカウントになってしまうので、本当はそれぞれのgithubユーザで適切なアクセストークンを作成して使用したほうが良い。 | ||
- | |||
- | ```https:// | ||
- | |||
- | {{: | ||
- | |||
- | 3.git pushするときのために、gitにemailとnameを設定しておく | ||
- | |||
- | ``` | ||
- | git config --global user.email " | ||
- | git config --global user.name " | ||
- | ``` | ||
- | |||
- | {{: | ||
- | |||
- | 4.npm startするには | ||
- | |||
- | ターミナルで、Mitosearchフォルダに移動してから、npm install, npm startで実行可能。 | ||
- | |||
- | {{: | ||
- | |||
- | あとはブラウザで```http:// | ||
- | |||
- | {{: | ||
- | |||
- | ====== Mitosearch Local Environment Configuration ====== | ||
- | **For the first time setting**\\ | ||
- | In terminal\\ | ||
- | line break is different. In windows, it is crlf. In linux or unix, it is lf | ||
- | git config --global core.autocrlf input | ||
- | git config --global core.safecrlf true | ||
- | |||
- | 1.Install visual studio 2022\\ | ||
- | |||
- | 2.Clone repository\\ | ||
- | Repository location: https:// | ||
- | < | ||
- | Path: the place you want\\ | ||
- | error: Mojibake | ||
- | solution: | ||
- | |||
- | 3.Authentication-related\\ | ||
- | login your Microsoft account(on the top-right side)\\ | ||
- | add GitHub account, then login the suikoucalender github account in browser\\ | ||
- | Git → Setting → Source code management→[set your username and email address]\\ | ||
- | //**make sure you add the suikoucalender github account in visual studio**// \\ | ||
- | //↑This does not refer to your Microsoft account, nor does it refer to logging into Microsoft services with your GitHub account// | ||
- | |||
- | \\ | ||
- | {{: | ||
- | {{: | ||
- | |||
- | **Development and maintenance**\\ | ||
- | 1.Staged Changes section\\ | ||
- | fatal error with cflr, use advanced save option to change line break. | ||
- | 2.Commit and update commits\\ | ||
- | 3.push | ||
- | |||
- | |||
- | |||
- | < | ||
- | C: | ||
- | Move to | ||
- | cd C: | ||
- | \\ | ||
- | npm install | ||
- | npm install ejs | ||
- | npm install i18n | ||
- | npm install –save express-session | ||
- | \\ | ||
- | Launch | ||
- | npm start | ||
- | localhost: | ||
- | |||
- | |||
- | **For the first time upload onto github** | ||
- | |||
- | make a new repository named mitosearch with suikoucalender account on github | ||
- | git clone git@github.com: | ||
- | copy the files in to the directory | ||
- | git add . | ||
- | git commit -m “ ” | ||
- | git remote add origin http:// | ||
- | git push -u origin main | ||