https://github.com/toodols/lepton
My personal project
https://github.com/toodols/lepton
mongodb nextjs redis socket-io typescript
Last synced: 4 months ago
JSON representation
My personal project
- Host: GitHub
- URL: https://github.com/toodols/lepton
- Owner: toodols
- License: mit
- Created: 2022-05-07T10:29:34.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-10-11T05:32:50.000Z (over 3 years ago)
- Last Synced: 2025-10-23T10:39:24.146Z (8 months ago)
- Topics: mongodb, nextjs, redis, socket-io, typescript
- Language: TypeScript
- Homepage:
- Size: 728 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Lepton
Built using next.js, mongodb, socket.io, redis
# How to run your own lepton
```
git clone https://github.com/toodols/lepton.git && cd lepton
npm run installstuff # Installs npm packages
npm run build-markup # Builds rust markup. You will need to install wasm-pack and by extension rust.
npm run compile # Compiles typescript
echo > .env.local
```
In .env.local put in
```
MONGODB_URI = mongodb:// url here
JWT_SECRET = just put something random here
REDIS_URI = redis:// url here
```
then run
```
npm run dev
```
# CONTRIBUTE PLEASE
Make issue if bug.
Make fix if issue.
Make pull request if fix.
Will merge.
# Structure
During development mode, the client side is hosted on 3000 to leverage fast refresh while the api, written in rust, is hosted on 3001. In production, since the client is built to static files, they will be able to share the same port.