-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
90b3cda
commit 33f4006
Showing
30 changed files
with
19,169 additions
and
103 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,28 @@ | ||
# store | ||
|
||
This is the code for our online store. This is a simple store for buying and selling humanoid robots. | ||
|
||
## Frontend | ||
|
||
To develop just the frontend, see the [frontend README](../frontend/README.md). | ||
|
||
## Full | ||
|
||
To develop the full stack, start FastAPI and React in separate terminals: | ||
|
||
### FastAPI | ||
|
||
Serve the FastAPI application in development mode: | ||
|
||
```bash | ||
fastapi dev 'store/app/main.py' | ||
``` | ||
|
||
### React | ||
|
||
Automatically rebuild the React frontend code when a file is changed: | ||
|
||
```bash | ||
cd frontend | ||
npm watch | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
||
# dependencies | ||
/node_modules | ||
/.pnp | ||
.pnp.js | ||
|
||
# testing | ||
/coverage | ||
|
||
# production | ||
/build | ||
|
||
# misc | ||
.DS_Store | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
|
||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# frontend | ||
|
||
This is the frontend of the project, which builds a static website using React. | ||
|
||
## Setup | ||
|
||
Install requirements: | ||
|
||
```bash | ||
cd frontend # This directory | ||
nvm use 20.10.0 | ||
npm install | ||
``` | ||
|
||
Start server: | ||
|
||
```bash | ||
npm start | ||
``` | ||
|
||
Build static files: | ||
|
||
```bash | ||
npm run build | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"watch": ["src"], | ||
"ext": "js,jsx,ts,tsx,css,html", | ||
"exec": "npm run build" | ||
} |
Oops, something went wrong.