mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-01-31 11:02:07 +08:00
added new package.json. install with npm install, and run with npm start.
This commit is contained in:
parent
6c7d027e32
commit
aae1f34a82
3 changed files with 18 additions and 2 deletions
|
@ -15,7 +15,7 @@
|
|||
2. [Install the Firebase CLI](https://firebase.google.com/docs/cli)
|
||||
3. Run `firebase login` on your terminal to log in to the same google account as you just used to create the project.
|
||||
4. Git clone this project.
|
||||
5. Run `npm install` in the `functions/` directory
|
||||
5. Run `npm install`
|
||||
6. Compile `public/css/style.scss` to `public/css/style.min.css` as [described below](https://github.com/Miodec/monkeytype/blob/master/CONTRIBUTING.md#standards--conventions)
|
||||
7. Rename `.firebaserc_example` to `.firebaserc` and change the project name of default to the firebase project id you just created.
|
||||
|
||||
|
@ -37,7 +37,7 @@
|
|||
- Click "Generate New Private Key"
|
||||
- Save as `serviceAccountKey.json` in the `functions/` directory
|
||||
|
||||
9. Run `firebase serve` to start a local server on port 5000. Use ctrl+c to stop it.
|
||||
9. Run `npm start` to start a local server on port 5000. Use ctrl+c to stop it.
|
||||
- Run `firebase use default` if you run into any errors for this.
|
||||
|
||||
## Standards & Conventions
|
||||
|
|
5
package-lock.json
generated
Normal file
5
package-lock.json
generated
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"name": "monkeytype",
|
||||
"version": "1.5.3",
|
||||
"lockfileVersion": 1
|
||||
}
|
11
package.json
Normal file
11
package.json
Normal file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"name": "monkeytype",
|
||||
"version": "1.5.3",
|
||||
"scripts": {
|
||||
"start": "firebase serve",
|
||||
"postinstall": "cd functions && npm install"
|
||||
},
|
||||
"engines": {
|
||||
"node": "10"
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue